Using Ticks with Text instead of Numbers???

2 posts, 0 answers
  1. mark baer
    mark baer avatar
    142 posts
    Member since:
    Sep 2009

    Posted 04 Oct 2011 Link to this post

    This is probably a stupid request, but our users want to see text like "Excellent", "Good", "Fair", "Poor", like you use for "Items", but they want to be able to select BETWEEN each item...more like "Ticks".  Also, there are underlying numbers that represent each of these selections.  I changed my slider from Item to Tick, but it just shows the numbers.  I can't get it to show the Text.  Can I change that somehow?  I know your control isn't made to handle this.  I was just hoping there was/is a work around.


  2. Slav
    Slav avatar
    1359 posts

    Posted 07 Oct 2011 Link to this post

    Hi Mark,

    As I understand your request, you want to use the Ticks feature of the RadSlider and to display custom text instead of the corresponding number. Each number, displayed over a tick of the slider control, represents the value of that item. Changing the content of these labels is not supported out-of-the-box, when the ItemType of the RadSlider is different than Item. Nevertheless, I can suggest a custom approach for achieving the desired scenario via some additional client scripts. You can use the client event OnClientLoad, in order to iterate through the items of the RadSlider and to change the text of a particular ticks, when the control is loaded on the page.

    For your convenience I have prepared and attached a sample project that demonstrates the presented approach. Please use it as a reference for incorporating the desired feature into your actual project. 

    Kind regards,
    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
Back to Top