This question is locked. New answers and comments are not allowed.
Chaiyouth Tiemchaipum
Top achievements
Rank 1
Chaiyouth Tiemchaipum
asked on 10 Mar 2010, 07:39 AM
Is it possible to navigate rows using up/down arrow keys in Telerik ASP.NET MVC Grid?
4 Answers, 1 is accepted
0
Hi Chaiyouth Tiemchaipum,
Keyboard navigation is not supported. What are your requirements? What should exactly happen when the user presses the arrow keys?
Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Keyboard navigation is not supported. What are your requirements? What should exactly happen when the user presses the arrow keys?
Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Chaiyouth Tiemchaipum
Top achievements
Rank 1
answered on 10 Mar 2010, 09:34 AM
Hi Atanas,
I have implemented a master-detail grid for example, customer-order.
My requirement is I want to use up/down arrow keys on keyboard to navigate rows on the master grid.
(rather than using mouse)
And the data in detail grid will change based on master grid as well.
Thanks for your response
Chaiyouth
I have implemented a master-detail grid for example, customer-order.
My requirement is I want to use up/down arrow keys on keyboard to navigate rows on the master grid.
(rather than using mouse)
And the data in detail grid will change based on master grid as well.
Thanks for your response
Chaiyouth
0
Accepted
Hello Chaiyouth Tiemchaipum,
To achieve your goal you need to add tabIndex attribute to the div which wraps the grid. Hence wire div's keydown event and in the event handler you need to find which row is selected. After you find the selected row, depending on the press key, select the previous or the next row. You need also to update the second gird.
For your convenience I have attached a test project which uses the suggested approach.
Regards,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
To achieve your goal you need to add tabIndex attribute to the div which wraps the grid. Hence wire div's keydown event and in the event handler you need to find which row is selected. After you find the selected row, depending on the press key, select the previous or the next row. You need also to update the second gird.
For your convenience I have attached a test project which uses the suggested approach.
Regards,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Chaiyouth Tiemchaipum
Top achievements
Rank 1
answered on 15 Mar 2010, 10:14 AM
Thanks Georgi !