RealGrid2 Guide
Tip
Tips related to deleting rows

Tips related to deleting rows

RealGrid allows you to set the deletion behavior through various options when deleting a row.
For example, when deleting a row, you can delete the row directly from the dataProvider, or you can only change the row state (RowState) without deleting it from the dataProvider.
When only the row state (RowState) is changed in the data provider, deleted rows can be displayed or hidden in the GridView.
Check it out through the example below.

Delete immediately

dataProvider.softDeleting = false;

Change row status only (delete row visible)

dataProvider.softDeleting = true;
gridView.hideDeletedRows = false;

Change row state only (hide delete row)

dataProvider.softDeleting = true;
gridView.hideDeletedRows = true;

Change only the row status (deleted row is visible, added rows (created) are deleted immediately without hiding them)

When an added row is deleted, its rowState does not change to deleted and is deleted immediately.

dataProvider.softDeleting = true;
dataProvider.deleteCreated = true;
gridView.hideDeletedRows = false;

Change only the row status (hide the deleted row, delete the added row (created) immediately without hiding it)

When an added row is deleted, its rowState does not change to deleted and is deleted immediately.

dataProvider.softDeleting = true;
dataProvider.deleteCreated = true;
gridView.hideDeletedRows = true;