Ticket T363560
Visible to All Users

ASPxGridView - Batch Edit - Provide cell focusing and keyboard navigation

Answers approved by DevExpress Support

created 9 years ago

We have implemented the functionality described in this ticket. It will be included in our next update(s).

Please check back and leave a comment to this response to let us know whether or not this solution addresses your concerns.

Additional information:

We have implemented the new cell focusing mode in the batch edit mode. Now you can navigate through cells using keyboard.
Arrow keys move focus.
Tab moves focus forward.
Shift + Tab moves focus backward.
Enter starts and ends editing.
F2 starts editing.
Delete deletes a row containing focused cell.
A new FocusedCellClick value has been added to the GridViewBatchStartEditAction enumeration. If the grid's SettingsEditing.BatchEditSettings.StartEditAction property is set to the FocusedCellClick value, the first click on a grid data cell focuses the cell, and the second click on the cell starts cell editing. The new FocusedCellClick value is now the StartEditAction property's default value.
You can customize the focused cell style by using the FocusedCell property
We have implemented two methods allowing you to control cell focus on the client side.
The GetFocusedCell method returns information about currently focused cell.
The SetFocusedCell method sets the specified cell as focused.
You can try this functionality in the WebForms Batch Editing and Updating or MVC Batch Editing demo.

Note that the specified links will be available with the next major release 16.1.

    Show previous comments (3)
    Vova (DevExpress Support) 8 years ago

      Hello,

      There are no shortcuts for adding a new row and saving changes. However, you can invoke the "New" and "Save changes" buttons using keyboard navigation: from the first and last cells using the Tab and Shift-Tab keys (see the attached video).

      Regards,
      Vova

      RB RB
      Robert Bickers 8 years ago

        This isn't really good enough for users, surely there should be an easy way for them to create a new row, without potentially having to scoot about all over that grid?

        Vova (DevExpress Support) 8 years ago

          Hello,

          I've created a separate ticket on your behalf (T552917: ASPxGridView - How to implement a shortcut to add a new row). It has been placed in our processing queue and will be answered shortly.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.