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

Using Ticks with Text instead of Numbers???

1 Answer 28 Views
Slider
This is a migrated thread and some comments may be shown as answers.
mark baer
Top achievements
Rank 1
mark baer asked on 04 Oct 2011, 07:49 PM
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.

thanks

Mark

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 07 Oct 2011, 02:13 PM
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,
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
mark baer
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or