I am using a RadGrid and the advanced data binding method via the NeedDataSource event. I am actually using this same setup in several areas of my app, but this is the only one that is behaving incorrectly. I am also using EditFormSettings with EditFormType="Template", and I have a GridTemplateColumn which has a button whose CommandName is RadGrid.EditCommandName. This causes my edit form template to show, and that works correctly. The template contains a button with CommandName of RadGrid.UpdateCommandName.
This is where the problem occurs, because NeedDataSource fires with RebindReason of GridRebindReason.InitialLoad BEFORE the UpdateCommand event fires. UpdateCommand does fire, and I am able to get values from my edit form template and save correctly, but because NeedDataSource fires before that, the Grid row of the item that was just edited shows the old values after it hides the edit form. I have tried calling Rebind after saving in my UpdateCommand handler, but that has no effect.
Any help is greatly appreciated.
This is where the problem occurs, because NeedDataSource fires with RebindReason of GridRebindReason.InitialLoad BEFORE the UpdateCommand event fires. UpdateCommand does fire, and I am able to get values from my edit form template and save correctly, but because NeedDataSource fires before that, the Grid row of the item that was just edited shows the old values after it hides the edit form. I have tried calling Rebind after saving in my UpdateCommand handler, but that has no effect.
Any help is greatly appreciated.