Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > DataForm > AutoEdit issue

Not answered AutoEdit issue

Feed from this thread
  • vk avatar

    Posted on May 31, 2012 (permalink)

    Hi,

    I use a RadDataForm bound to a QDSCV. If I set the AutoEdit property to true (AutoCommit is also true), make some modifications to a current item, move to the next item and then try to submit changes, I get an exception saying that "Entity is currently being edited and has uncommited changes". It seems that QDSCV.CommitEdit() for the previous item has not been called... So to workaround it I have to call it in the QDSVC's CurrentChanging event, but I'm not sure this is the correct way...

    void qdscv_CurrentChanging(object sender, CurrentChangingEventArgs e)
    {
     if (qdscv.CurrentItem != null && (qdscv.CurrentItem as Entity).EntityState != EntityState.Deleted)
     {
      if (qdscv.IsEditingItem) qdscv.CommitEdit();
     }
    }

    Reply

  • Say Hello to Telerik's PivotGrid for ASP.NET AJAX, Silverlight, WPF and WinForms. Now packed with OLAP support.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > DataForm > AutoEdit issue