I have replaced some TextBox controls with RadMaskedTextBox controls in a few dialogs.
sample:
| <telerikInput:RadMaskedTextBox Name="somedata" MaskType="Numeric" Mask="" Value="{Binding Source={StaticResource somesource}, Path=somedata}"/> |
After the replacement, the databinding only works for setting the data upon loading. When retrieving the data after closing the dialog, the fields have not changed.
The same databinding using a TextBox works fine.
I have circumvented the problem by manually setting the data upon closing the dialog, but that is obviously not a very good solution.
| SomeObject r = (SomeObject)(((ObjectDataProvider)datagrid.Resources["somesource"]).ObjectInstance); |
| r.somedata = Convert.ToInt16(this.somedata.Value); |
Any suggestions would be most welcome.
Best regards,
Tomas