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

Dynamic label for Slider?

3 Answers 110 Views
Slider
This is a migrated thread and some comments may be shown as answers.
bemara57
Top achievements
Rank 1
bemara57 asked on 26 Jun 2008, 06:05 PM
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?

3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 30 Jun 2008, 02:58 PM
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.

Regards,

Svetlina
the Telerik team


Instantly find answers to your questions at the new Telerik Support Center
0
jgig
Top achievements
Rank 1
answered on 14 Jul 2008, 04:16 AM
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 

$get(

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

Is there a release date for Q2

0
Svetlina Anati
Telerik team
answered on 15 Jul 2008, 11:40 AM
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,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Slider
Asked by
bemara57
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
jgig
Top achievements
Rank 1
Share this question
or