NumerocUpDown with UpdateSourceTrigger and UpdateValueEvent

4 posts, 0 answers
  1. Pierre
    Pierre avatar
    2 posts
    Member since:
    Jan 2016

    Posted 21 Jan Link to this post

    Hello,

    I just ported my solution from .NET 3.5 to .NET 4.6.1 and updated Telerik from version 2012.2.912.35 to 2015.3.1104.5.

    This code used to work fine, the setter of the property was called when the control lost focus:

     <telerik:RadNumericUpDown Value="{Binding UIExceeding, Mode=TwoWay}" SmallChange="0" LargeChange="0">

     

    After the framework and Telerik was updated, the setter was never called anymore. To go back to how it used to work, I had to add UpdateSourceTrigger=LostFocus and UpdateValueEvent="PropertyChanged":

      <telerik:RadNumericUpDown Value="{Binding UIExceeding, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" SmallChange="0" LargeChange="0" UpdateValueEvent="PropertyChanged">

     

    Could you tell me what changed in between versions?

    Thanks in advance

     

     

  2. Nasko
    Admin
    Nasko avatar
    587 posts

    Posted 25 Jan Link to this post

    Hello Pierre,

    The observed by you behavior is not an expected one. Your initial code should be working as expected with version 2015.3.1104.5 - as soon as the focus is moved out of RadNumericUpDown the setter should be called as expected. Please, check the attached video and let us know if we missed something.

    It will be great if you are able to send us a sample that demonstrates the behavior observed on your side - thus we could be able to investigate it further.

    Hope this helps.

    Regards,
    Nasko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Pierre
    Pierre avatar
    2 posts
    Member since:
    Jan 2016

    Posted 25 Jan in reply to Nasko Link to this post

    Hi,

    Thanks for you answer. Your video seems indeed to demonstrate that there's no problem regarding the Telerik component (which is fortunate!).

    I tried to remove all optional attributes (Style, Converter, etc.) in order to see if they were causing this behaviour somehow, but no change, still no call to the setter when the focus is lost...

    My radNumericUpDown is embedded in a bunch of other controls though (it's in the <DataTemplate> of a <DataGridTemplateColumn.CellTemplate>), so the root cause is probably located in those parent controls' configurations.

    I'll keep looking for the cause and try to isolate a stand-alone sample that reproduces the issue to post here.

    Thanks for your investigation

  5. Nasko
    Admin
    Nasko avatar
    587 posts

    Posted 25 Jan Link to this post

    Hi Pierre,

    As soon as you are able to isolate the issue or have some additional information that might help us to reproduce it on our side, please contact us.

    Meanwhile, if you have any additional questions or concerns regarding Telerik controls, please do not hesitate to contact us.

    Regards,
    Nasko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top