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

My binding isn't working for RadMaskedNumericInput and RadMaskedCurrencyInput

5 Answers 35 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Marc Roussel
Top achievements
Rank 2
Marc Roussel asked on 19 Dec 2013, 07:07 PM

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







5 Answers, 1 is accepted

Sort by
0
Marc Roussel
Top achievements
Rank 2
answered on 19 Dec 2013, 07:13 PM

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




0
Marc Roussel
Top achievements
Rank 2
answered on 19 Dec 2013, 07:15 PM
I tried to bind to a non nullable property as well and did not succeed
0
Pavel R. Pavlov
Telerik team
answered on 24 Dec 2013, 03:05 PM
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 >>
0
Marc Roussel
Top achievements
Rank 2
answered on 24 Dec 2013, 03:10 PM
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
0
Pavel R. Pavlov
Telerik team
answered on 27 Dec 2013, 01:16 PM
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 >>
Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Marc Roussel
Top achievements
Rank 2
Answers by
Marc Roussel
Top achievements
Rank 2
Pavel R. Pavlov
Telerik team
Share this question
or