Selection Range gets selected in double click

3 posts, 1 answers
  1. Mohd
    Mohd avatar
    19 posts
    Member since:
    Aug 2011

    Posted 30 Apr 2012 Link to this post

    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. Answer
    Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 03 May 2012 Link to this post

    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 >>

  3. DevCraft banner
  4. Mohd
    Mohd avatar
    19 posts
    Member since:
    Aug 2011

    Posted 07 May 2012 Link to this post

    This is exactly what i am looking for...
    Thanks a lot
Back to Top