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

UpdateValueEvent - LostFocus

1 Answer 60 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
Justin Lee
Top achievements
Rank 1
Justin Lee asked on 05 Apr 2014, 12:15 AM
It appears that even with UpdateValueEvent=LostFocus, the property that is bound to Value is updated whenever the value is changed -- so if you press the UP key 5 times, the databound property is updated 5 times -- even though the NumericUpDown never lost focus.

Is this a known issue or am I understanding the UpdateValueEvent property wrong? 
Is there a workaround?  I only want the view model to be updated once the user is finished setting the number and click off the control.

Using Q3 2013.

Thanks,
Justin

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 07 Apr 2014, 11:35 AM
Hello Justin,

The mentioned issue has been already fixed with the Q1 2014 release version of the controls. So what I can suggest you is to upgrade the used version of the controls or as a work around you could bind the Value property to a property in the ViewModel the following way:
<telerik:RadNumericUpDown Value="{Binding Value, Mode=TwoWay, UpdateSourceTrigger=LostFocus}"/>

Hope this helps.

Regards,
Kalin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
NumericUpDown
Asked by
Justin Lee
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or