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

Selection Range gets selected in double click

2 Answers 93 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Mohd
Top achievements
Rank 1
Mohd asked on 30 Apr 2012, 01:28 PM
I have a slider control in which there are states like:

1) When it is unselected the selection range color is blue.
2) When it is selected the selection range color is green.

The problem i am facing is that i have to double click  the selection range to change its state (which changes color from blue to green)
Here is the link to download the sample 
Also i have attached the screenshot

Now my second problem is how can i disable its feature Move the Thumb to the Mouse Pointer

2 Answers, 1 is accepted

Sort by
0
Accepted
Tina Stancheva
Telerik team
answered on 03 May 2012, 10:10 AM
Hello Mohd,

I examined your solution and I noticed that you've edited the focused state of the selection range to implement the blue/green background color change. However, as you've wrapped the Slider in ListBoxItems the first time you click on the selection range, the ListBoxItem gets selected and it doesn't give the focus to the clicked element of the Slider control. This is why Id' suggest using the RadTreeView control instead of the ListBox as it won't steal the focus from the Slider SelectionRange element. Or if you can upgrade to our latest version, you can even take advantage of our new RadListBox control. Both controls will let you change the color with just one click on the selection range.

As for the second issue, I can see that you've turned off the MoveToPoint Slider functionality so I guess what you need is to disable moving the selection range when clicking on the track. If this is indeed the case, then you can set the RadSlider.LargeChange property to 0.

I modified your project and I added the Navigation Telerik assembly - version 2011.3.1220. And this is why I replaced the ListBox control with a RadTreeView control and I also set the RadSlider.LargeChange to 0. Please have a look at the solution and let me know if it helps.

Kind regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Mohd
Top achievements
Rank 1
answered on 07 May 2012, 06:59 AM
This is exactly what i am looking for...
Thanks a lot
Tags
Slider
Asked by
Mohd
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Mohd
Top achievements
Rank 1
Share this question
or