My binding isn't working for RadMaskedNumericInput and RadMaskedCurrencyInput

6 posts, 0 answers
  1. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 19 Dec 2013 Link to this post

    I have both control property Value bound to the DataContext property of double? which is a nullable property.



    Now I clearly see that when I enter a value on the interface and check the result of the property afterward there's nothing in my property which tells me that the binding isn't working and I don't know why.



    Any help would be appreciated







  2. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 19 Dec 2013 Link to this post

    When I inspect the BindingExpression in code everything looks in place therefore what am I missing here ?




  3. DevCraft banner
  4. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 19 Dec 2013 Link to this post

    I tried to bind to a non nullable property as well and did not succeed
  5. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1183 posts

    Posted 24 Dec 2013 Link to this post

    Hello Marc,

    I am not sure when you check the value in your ViewModel. It might be expected that it is not yet updated. When using binding you need to have in mind that there is setting, controlling when the binding will be  updated. This setting is the UpdateSourceTrigger property of the binding. If you need to update your ViewModel whenever the user inputs a number, you need to set this property to PropertyChanged.

    Regards,
    Pavel R. Pavlov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  6. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 24 Dec 2013 Link to this post

    Hi,

    the data comes from a wcf call hence the INotifyPropertyChanged is already implemented automatically so everything should work as expected but it doesn't. What I don't understand is that the same code in a repro project works
  7. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1183 posts

    Posted 27 Dec 2013 Link to this post

    Hi Marc,

    Since your last post, it seems that the code works as expected and the issue is not caused by any or our controls. Since our support scope does not include maintaining your custom projects, we suggest asking for help in other community driven online resources (such as StackOverflow).

    Thank you for understanding.

    Regards,
    Pavel R. Pavlov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
DevCraft banner