ASPxClientGridViewBatchEditApi.IsDeletedRow(visibleIndex) Method
Indicates whether the specified row is marked as deleted in batch edit mode.
Declaration
IsDeletedRow(
visibleIndex: number
): boolean
Parameters
Name | Type | Description |
---|---|---|
visibleIndex | number | The row’s visible index. |
Returns
Type | Description |
---|---|
boolean |
|
Remarks
Call the IsDeletedRow
method to determine if the specified row is marked as deleted.
<dx:ASPxGridView ID="Grid" ClientInstanceName="ClientGrid" runat="server" ...>
<!-- ... -->
<SettingsEditing Mode="Batch" />
</dx:ASPxGridView>
<br />
<dx:ASPxButton ID="RecoverButton" runat="server" Text="Recover rows" AutoPostBack="false">
<ClientSideEvents Click="OnRecoverButtonClick" />
</dx:ASPxButton>
function OnRecoverButtonClick(s, e) {
var batchApi = ClientGrid.batchEditApi;
var rowVisibleIndices = batchApi.GetRowVisibleIndices(true);
for (var i = 0; i < rowVisibleIndices.length; i++) {
var visibleIndex = rowVisibleIndices[i];
if (batchApi.IsDeletedRow(visibleIndex)) {
batchApi.RecoverRow(visibleIndex);
}
}
}
See Also