RadDataForm Does Not Update When Bound Object Changes

2 posts, 0 answers
  1. Brian
    Brian avatar
    58 posts
    Member since:
    Jul 2011

    Posted 11 Oct 2011 Link to this post

    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?
  2. Brian
    Brian avatar
    58 posts
    Member since:
    Jul 2011

    Posted 11 Oct 2011 Link to this post

    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.
  3. DevCraft banner
Back to Top