RadSlider ToolTip for Range Slider

2 posts, 0 answers
  1. omer
    omer avatar
    65 posts
    Member since:
    Nov 2010

    Posted 04 Jan 2012 Link to this post

    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


  2. Slav
    Admin
    Slav avatar
    1356 posts

    Posted 09 Jan 2012 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top