UPDATED:
Starting with version v2016 vol 1 (v16.1), this functionality is available out of the box. Set the grid's SettingsEditing.BatchEditSettings.StartEditAction property to the FocusedCellClick value to activate it. Please refer to the Batch Editing and Updating demo and ASPxGridView - Batch Edit - Provide cell focusing and keyboard navigation thread for more information.
If you have version v16.1+ available, consider using the built-in functionality instead of the approach detailed below.
For earlier versions:
This example illustrates how to implement custom keyboard navigation in Batch Edit mode.
The main idea is to handle the keydown event for the grid's HTML table and manually switch the next cell to edit mode using the ASPxClientGridViewBatchEditApi.StartEdit method.
The ASPxClientGridView.BatchEditStartEditing event is used to remember the last editing row and column indices.
Note that keyboard navigation (via arrows) won’t work well for such editors as the ComboBox and SpinEdit because they have their own key event handlers, which will prevent custom logic from being executed. So, this approach is mainly for TextBox and Memo editors. However, it will be possible to use different keys in this scenario.
This example doesn't implement data updates. Please refer to the GridView - A simple Batch Editing implementation example illustrating how to work with a model in Batch Edit mode.
Web Forms:
ASPxGridView - How to implement navigation by Up/Left/Down/Right buttons when the Batch Edit mode is used
↧
OBSOLETE - GridView - How to implement navigation by Up/Left/Down/Right keyboard arrows in the Batch Edit mode
↧