I am not sure if this is the default action when deleting an item in the Grid, but if more than 1 page exists in the grid it will refresh to the last page when paging is on.
Example is there are 5 pages of 20 items each in the grid. If I delete an item on the 1st page, when the action is done the grid will show the last page of data even though the pager still shows page 1.
<ejs-grid id="Grid" load="onLoad" allowPaging="true" allowpaging="true" toolbar="@( new List<object>() {"Add","Edit","Delete","Update","Cancel", "Search"})">
<e-grid-editsettings allowAdding="true" allowDeleting="true" allowEditing="true"></e-grid-editsettings>
<e-grid-pagesettings pageSize="5"></e-grid-pagesettings>
<e-data-manager url="/Performance/Scorecards/Scorecard?handler=DataSource" insertUrl="/Performance/Scorecards/Scorecard?handler=Insert" removeUrl="/Performance/Scorecards/Scorecard?handler=Delete" updateUrl="/Performance/Scorecards/Scorecard?handler=Update" adaptor="UrlAdaptor"></e-data-manager>
<e-grid-columns>
...
</e-grid-columns>
</ejs-grid>
public JsonResult OnPostDeleteAsync([FromBody]CRUDModel<Scorecard> value)
{
var entity = _context.Scorecard.FirstOrDefault(s => s.Id.ToString() == value.Key.ToString());
if (entity != null)
{
_context.Scorecard.Remove(entity);
_context.SaveChanges();
}
return new JsonResult(value);
}