This knowledge base explains how to bind Keydown event to form element while editing a record.
We have achieved this using actionComplete event of ejGrid. In actionComplete event once the edit form is rendered we have bind the keydown event to form elements using on method of jQuery.
The following code example demonstrates how to bind Keydown event to form element while editing a record.
1. Render the Grid
2. In actionComplete event ejGrid we check the condition with the requestType as beginedit and we can get all the elements using its Id( gridID + fieldName). Once we get the element we bind the keydown event using on method.
Figure: Editing a record and focus is on last visible editable column. Pressing a tab key will save the edited data.
This page will automatically be redirected to the sign-in page in 10 seconds.