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

Value Databinding

3 Answers 94 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 10 Jun 2014, 04:24 PM
Is there a way to only update the value data binding when the user has done a thumb up action?

Thanks!

3 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 13 Jun 2014, 08:53 AM
Hi Josh,

In order to update the Value of the slider only when the drag thumb is up you can set the IsDeferredDraggingEnabled property of the RadSlider to True. Please try this and let me know if it helps.

Regards,
Martin
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Josh
Top achievements
Rank 1
answered on 13 Jun 2014, 01:37 PM
Thanks! Is there anyway to turn off the value updates when the user clicks on the track bar or thumb? 
0
Martin Ivanov
Telerik team
answered on 17 Jun 2014, 01:45 PM
Hi Josh,

In order to achieve your requirement you can slightly change the ControlTemplate of the RadSlider. Basically you can do the following
  • Extract the ControlTemplate of the slider. You can see the Editing Control Templates help article to see how to do it.
  • Find the RepeatButton elements with x:Names set to "LargeIncreaseButton" and "LargeDecreaseButton", and set their IsHitTestVisible properties to False. Note that those elements represents the slider's track.
  • Find the Grid that holds the Thumb elements and also set its IsHitTestVisible to False.

This will ensure that the track and the buttons cannot be clicked and the Value of the slider wont be updated. Please take a look at the attached project and let me know if this approach is helpful in your scenario. 

Regards,
Martin
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
Slider
Asked by
Josh
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Josh
Top achievements
Rank 1
Share this question
or