This is a migrated thread and some comments may be shown as answers.

RadSlider ToolTip for Range Slider

1 Answer 66 Views
Slider
This is a migrated thread and some comments may be shown as answers.
omer
Top achievements
Rank 1
omer asked on 04 Jan 2012, 10:09 PM
Hello everyone!

just tried to display in RadSlider tooltip with image. 

with this codes it is ok but displaying 2 image side by side. 
div.innerHTML = "<img src='images/" + slider.get_selectedItems()[0].get_value() + ".gif' width='50' height='64'> <img src='images/"  + slider.get_selectedItems()[1].get_value() + ".gif' width='50' height='64' >";

with this code displaying image good for every step but when i sliding right handle it displaying only  first image 
div.innerHTML = "<img src='images/" + slider.get_selectedItems()[0].get_value() + ".gif' width='50' height='64'> <img src='images/"  + slider.get_selectedItems()[1].get_value() + ".gif' width='50' height='64' >";
        else
 
            div.innerHTML = "<img src='images/" + slider.get_selectedItems()[1].get_value() + ".gif' width='50' height='64'> ";


so target is
when i sliding right handle tooltip displaying right image.
any help?
Regards


1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 09 Jan 2012, 02:33 PM
Hi Omer,

I would suggest checking if the src attribute of every image is correctly constructed, as there may be scenarios, in which a non existent image file is referenced. Also, you could use the RadSlider's client method get_activeHandle() in order to get the client object of the currently dragged handle and to utilize it for retrieving the according data.

Note that currently I am mostly guessing as to what your setup is. If you are still unable to resolve the issue at hand, please prepare and send a simple, runnable page that isolates the problem so that we can examine it and provide a more to the point answer.

Regards,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Slider
Asked by
omer
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or