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
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
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
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 >>
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
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
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
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 >>
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 >>