This is a migrated thread and some comments may be shown as answers.

Grid editing with keyboard navigation example

3 Answers 137 Views
GridView
This is a migrated thread and some comments may be shown as answers.
JP
Top achievements
Rank 1
JP asked on 20 Mar 2009, 02:24 PM
Hello Telerik team,

I have a need in my application to provide basic keyboard navigation while editing cells in a grid and I can't seem to get it to work with the latest version (Q1 2009) of your WPF grid.  I have seen many posts on this forum regarding this topic but none of them provide a complete solution and most of them are for previous versions of the grid.  If it's possible would you be able to provide a complete example that provides the functionality outlined below.  I think an example like this would benefit a lot of people as I believe that this type of functionality should be provided out of the box.

1. If in edit mode, pressing Tab or Shift+Tab should move to the next/previous cell and stay in edit mode
2. If in the last cell of a row, pressing Tab should move to the first cell of the next row and stay in edit mode
3. If in the first cell of a row, pressing Shift+Tab should move to the last cell of the previous row and stay in edit mode
4. Pressing Enter should commit the changes and take you out of edit mode
5. When tabbing between cells, the GridViewDataControl.BeginningEditEvent should still be raised to allow for adding custom editing logic (e.g. populating a cell's combo box editor with a list of values)
6. The solution should work with custom grid editing controls too.  (An example being that I have a combo box control that is editable so that users aren't forced to choose a value from the list)

Thanks,

Joel

3 Answers, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 23 Mar 2009, 02:29 PM
Hello Joel,

We plan to introduce some improvements to the keyboard navigation with the upcoming SP. One of this will be "smart" navigation with TAB you described.

Thank you again for the feedback, it's very appreciated and valuable for us.

Regards,
Nedyalko Nikolov
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
JP
Top achievements
Rank 1
answered on 23 Mar 2009, 04:44 PM
Hi Nedyalko,

That would be great if you could make that kind of functionality built in.  Any idea of when the service pack might be released?

Thanks,

Joel
0
Vlad
Telerik team
answered on 24 Mar 2009, 02:15 PM
Hello Joel,

The service pack will be after two weeks.

Kind regards,
Vlad
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
JP
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
JP
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or