ASPxClientGridViewBatchEditApi.EndEdit Method
Ends cell or row editing.
Declaration
EndEdit(): void
Use the EndEdit method to end the editing of a cell or row (based on the GridViewBatchEditSettings.EditMode property). The method hides an editor and switches a cell/row to browse mode.
Example
The following example illustrates how to use the EndEdit method.
function OnCellCheckedChanged(s, e) {
Grid.batchEditApi.EndEdit();
}
<dx:ASPxGridView ID="ASPxGridView1" runat="server" DataSourceID="AccessDataSource1"
AutoGenerateColumns="False" ClientInstanceName="Grid" KeyFieldName="ProductID"
OnCustomErrorText="ASPxGridView1_CustomErrorText" OnRowUpdating="ASPxGridView1_RowUpdating">
<SettingsEditing Mode="Batch"></SettingsEditing>
<ClientSideEvents BatchEditRowDeleting="OnBatchEditRowDeleting" BatchEditEndEditing="OnBatchEditEndEditing"
BatchEditRowInserting="OnBatchEditRowInserting" />
...
<Columns>
...
<dx:GridViewDataCheckColumn FieldName="Discontinued" VisibleIndex="6">
<PropertiesCheckEdit>
<ClientSideEvents CheckedChanged="OnCellCheckedChanged" />
</PropertiesCheckEdit>
<HeaderTemplate>
<dx:ASPxCheckBox ID="HeaderCheckBox" ClientIDMode="Static" runat="server" ClientInstanceName="HeaderCheckBox" AllowGrayed="true" AllowGrayedByClick="false">
<ClientSideEvents CheckedChanged="OnHeaderCheckBoxCheckedChanged" Init="OnInitHeader" />
</dx:ASPxCheckBox>
</HeaderTemplate>
<Settings AllowSort="False" />
</dx:GridViewDataCheckColumn>
</Columns>
</dx:ASPxGridView>
See Also