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

Client Selection Start / End

3 Answers 55 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Peter Zolja
Top achievements
Rank 1
Peter Zolja asked on 18 Dec 2008, 12:39 AM
How can I access the selection end / start (when IsSelectionRangeEnabled is true) with Javascript?

Thanks.

3 Answers, 1 is accepted

Sort by
0
Peter Zolja
Top achievements
Rank 1
answered on 18 Dec 2008, 12:54 AM
It's actually sender.get_selectionStart() and sender.get_selectionEnd(), where sender is the slider. Unfortunately, this gives me the position rather than the actual value :(
0
Peter Zolja
Top achievements
Rank 1
answered on 18 Dec 2008, 01:32 AM
To access the value: 

sender.get_itemData()[sender.get_selectionStart()].value 
and 
sender.get_itemData()[sender.get_selectionEnd()].value

Would be nice if these were documented :)
0
Accepted
Tsvetie
Telerik team
answered on 18 Dec 2008, 11:41 AM
Hello Peter Zolja,
We already have the task to update the documentation of the RadSlider control with those methods. We will do our best to complete this task for SP2, scheduled for the middle of January.

Kind regards,
Tsvetie
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Slider
Asked by
Peter Zolja
Top achievements
Rank 1
Answers by
Peter Zolja
Top achievements
Rank 1
Tsvetie
Telerik team
Share this question
or