This Knowledge base explains how to maintain the focus on the edited record while saving the records in Dialog Edit mode without paging.
We have achieved this using actionComplete event of ejGrid. By default, when edit dialog is opened then the grid is focused to the center position, so while saving the records the current view does not contain the edited record.
The following code example demonstrates how to maintain the focus on the edited record while saving the records in Dialog Edit.
1.Render the Grid control.
2. In the actionComplete event we have scrolled the content of the Grid based on the window height and the selected row offset value.
Figure 1:Before Editing
Figure 2: Editing
This page will automatically be redirected to the sign-in page in 10 seconds.