Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
465
Webgrid EditRow Buttons (Done, cancel) events
posted

hi,

 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 !

Parents
  • 16310
    Offline posted

    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.

Reply Children