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

RadDataForm Does Not Update When Bound Object Changes

1 Answer 112 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 11 Oct 2011, 04:47 PM
My RadDataForm does not update the values of its controls when the object that it is bound to changes.  Even though the binding mode is set to TwoWay, the controls only seem to get their values from the object once. 

For example, right after I call AddNew on the RadDataForm, I am able to set the value of the Client_ID field on my object and the value will show up on the DataFormDataField that is bound to Client_ID.  If I try to change the value later by updating the bound object, the object is updated but the value displayed in the DataFormDataField does not change.  My RadDataForm is bound to a List<T>, where T is a an Entity created by RIA Services.

Am I missing something?

1 Answer, 1 is accepted

Sort by
0
Brian
Top achievements
Rank 1
answered on 11 Oct 2011, 05:20 PM
I figured out that the problem was with my RIA Services Entity.  I had extended the model using a partial class and had implemented INotifyPropertyChanged when I didn't need to.  This implementation was hiding elements of the Entity, which seems to have caused the issue.
Tags
DataForm
Asked by
Brian
Top achievements
Rank 1
Answers by
Brian
Top achievements
Rank 1
Share this question
or