hi,
i have RowEditing Behavior enable and the done, cancel buttons in the row when i edit the row
however how can i trigger an code behind event : protected void GRID_RowUpdating(object sender, Infragistics.Web.UI.GridControls.RowUpdatingEventArgs e) when i press the done button !
HI Mark,
My fault!
commit() should be called in the ExitedEditMode event actually:
function WebDataGrid1_RowEdit_ExitedEditMode(sender, eventArgs){ sender.get_behaviors().get_editingCore().commit();}
...
<ig:RowEditing> <RowEditingClientEvents ExitedEditMode="WebDataGrid1_RowEdit_ExitedEditMode" /></ig:RowEditing>
Hristo
this didn't work !
sender.get_behaviors().get_editingCore() didn't trigged any event on server side
Hi Mark,
Clicking the Done button or pressing the Enter key on the keyboard accepts any changes made to the row in Edit mode and exits Edit mode., firing the ExitingEditMode client side event.
In order to commit the changes to the server, which will hit the RowUpdating server side event, you need to call commit method:
function WebDataGrid1_RowEdit_ExitingEditMode(sender, eventArgs) { sender.get_behaviors().get_editingCore().commit(); }
If commit is not called, the user needs to click on another row in the grid, which will automatically commit the changes.