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

[Solved] radgrid

4 Answers 134 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ayesha
Top achievements
Rank 1
Ayesha asked on 03 Feb 2010, 04:42 AM
Hi,

I've a radgrid in my ascx. I've 3 buttons below the grid.

Now if I set tabindex to 1 forgrid and for the first button, I set the tab index 2 and so on .
But when ?I 've focus on my grid and click on tab button,  the tab doesnot go the first button.
Instaead it goes to the IE url? how do i prevent this. I need the tab to work in the way i set it.Pls help me with code.

4 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 05 Feb 2010, 10:24 AM
Hi Ayesha,

The easiest way to achieve you scenario is to attach a client event handler to the client OnKeyDown event of the grid, check if TAB has been pressed and set the focus directly to the button in question. The same can be done for the focus on the second button with key down being attached also to the first button's client events.

I hope this helps. 

Regards,
Tsvetoslav
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Ayesha
Top achievements
Rank 1
answered on 08 Feb 2010, 10:13 PM
hi Tsvetoslav ,

Can you explain the below with code?? How do I attach the onkeydown
0
Shinu
Top achievements
Rank 2
answered on 09 Feb 2010, 12:10 PM
Hi,

Check out the help topic on  how to attach the OnKeyPress event to the RadGrid.

-Shinu
0
Ayesha
Top achievements
Rank 1
answered on 09 Feb 2010, 08:10 PM
Hi Shinu,

I need the onkeydown event ( not on keypress). Pls tell me where can I find this client side event for radgrid
Tags
Grid
Asked by
Ayesha
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Ayesha
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or