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

RadGrid Keyboard Navigation Help

1 Answer 174 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Arsalan Ansari
Top achievements
Rank 1
Arsalan Ansari asked on 09 Dec 2010, 04:09 PM
i'll be blunt - i DO NOT like the new keyboard navigation feature of the radgrid.  the idea is great but it needs heavy work.

If you do not use the keys to navigate and instead click on a row, it always scrolls the page so that the top of the radgrid is in the browser window.  This is especially annoying if you scroll to the bottom of the page and want to double click on a row to edit it.  The radgrid instead opens some other random row to edit.

you can use the up and down arrow keys to highlight a row but why can you not click on a row to highlight it?

if i have 200 rows in my radgrid and i want to edit the 100th row using keyboard navigation, it is horribly inconvenient to step through the entire grid with the arrow keys.  Am i missing something? can someone tell me how to use the keyboard to get to that row faster?
[update] so i found out how to select a specific row by clicking on it but if this row is down on the page, click on it will select it but it will cause the radgrid to scroll to the top of the page - VERY FRUSTRATING [/update]

i like the old style where you could use javascript to double click on a row to edit it and then press enter to save the changes.  Now, pressing enter causes the radgrid to cancel the changes you made in the edit row and instead put the top row in edit mode.  What do i have to do so that i can keep the double-click-to-edit functionality and then press enter to save those changes in the current row being edited and avoid the screwey things the radgrid is doing now.

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 14 Dec 2010, 04:35 PM
Hi Arsalan,

In case you do not want any other features of the keyboard navigation apart from double-clicking for edit and pressing Enter for update, my suggestion is that you turn it off. Then you could just attach client-side function to the textboxes in the edit form that will fire an Update command when Enter is pressed upon them. You could try attaching the keydown event by handling the RadGrid's ItemCreated server-side event and accessing the GridEditFormItem's textboxes.

As for using double-click to trigger the edit textbox, the logic to do so is available in this help topic.

All the best,
Tsvetina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Arsalan Ansari
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or