Dynamic label for Slider?

4 posts, 0 answers
  1. bemara57
    bemara57 avatar
    57 posts
    Member since:
    Mar 2008

    Posted 26 Jun 2008 Link to this post

    I noticed on the demo, the sliders have images as the label underneath the slider, to tell the user what value the slider is at (http://www.telerik.com/DEMOS/ASPNET/Prometheus/Slider/Examples/Configurator/DefaultCS.aspx). Has anybody found a way to automatically create a dynamic label for the slider. I was a little disappointed not to see a "ShowLabel" property for the slider. A "ShowLabel" and "LabelCss" properties would be really nice features for the slider. For example, taking the minimum and maximum values and creating marks for the slider? I don't want to have to create an image for each slider I make. Any ideas?
  2. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 30 Jun 2008 Link to this post

    Hello bemara57,

    Thank you for the suggestion - it is logged in our TODO list.

    Currently we are reworking the rendering mechanism and the logic of RadSlider so we can provide the following features which are set with highest priority in our ToDo list:

    1. Two-thumb functionality.
    2. The ability to set the width and height of the control in percents
    3. More flexible mechanism for determining the physical and logical length of the track (currently Length property sets the physical value and the logical length is being calculated based on MinValue and MaxValue properties)
    4. Tickmarks for the values the slider takes.

    These are the main features and they are scheduled to appear for the Q2 release. We will do our best to provide the "decimal values" feature as well.

    For the time being I attached a sample demo which shows how you can create a label which changes its value according to the RadSlider's value.


    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft R3 2016 release webinar banner
  4. jgig
    jgig avatar
    61 posts
    Member since:
    Apr 2008

    Posted 13 Jul 2008 Link to this post

    I am looking to do something similar as this sample. I agree creating images for each slider is just not a good option as I want to create them dynamically for a XML filter. The filters will be data specific. I also would like to do some based on a time window, for instance 12:30PM to 3:30PM. Any demos like that?

    Also when I use your sample code on a brand new page I get an error.
    Microsoft JScript runtime error: Object doesn't support this property or method. 
    OnClientLoaded="SetInitialSettings" - first line breaks 


    "maxValue").value = sender.get_MaximumValue();

    Is there a release date for Q2

  5. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 15 Jul 2008 Link to this post

    Hello jgig,

    The naming conventions of client-side methods are changing according to the AJAX naming conventions and the sample I send you uses an older one. Please, accept my sincere apologies for this. In order to run successfully the project you should replace the sender.get_MaximumValue() with sender.get_maximumValue() and sender.get_MinimumValue() with sender.get_minimumValue().

    We are currently intensively working on improving and extending the RadSlider control, which will be available in our Q2 2008 release, which is scheduled for 22 July.

    Sincerely yours,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top