UpdateValueEvent - LostFocus

2 posts, 0 answers
  1. Justin Lee
    Justin Lee avatar
    149 posts
    Member since:
    Dec 2009

    Posted 04 Apr 2014 Link to this post

    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
  2. Kalin
    Admin
    Kalin avatar
    1208 posts

    Posted 07 Apr 2014 Link to this post

    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.

     
  3. DevCraft banner
Back to Top