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

Navigation via Tab also in next row

3 Answers 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
BigzampanoXXl
Top achievements
Rank 1
BigzampanoXXl asked on 15 Feb 2012, 12:02 PM
Hey, I need the following functionality, but I have no idea if it is possible on "legal" telerik way.

After clicking once on the row of the grid the row is in edit mode. I want to navigate through all editable fields which works fine out of the box. But after pressing tab in the last column I want to switch in the next row and setting the prior row in display again (but this isn't the problem). I tried the silverlight grid and there this functionaliy is implemented yet.
After some research I found out, that this might be a real challenge because I needs to override the browser tab-event.

Is there any "easy" approach?

Thanks and
Best regards 

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 20 Feb 2012, 09:23 AM
Hi,

I would suggest you to refer to the following forum post which elaborates on similar scenario. Review the provided approach and l;et me know if it works for you.

All the best,
Maria Ilieva
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
BigzampanoXXl
Top achievements
Rank 1
answered on 20 Feb 2012, 01:52 PM
The approach itself seems to work, but the problem is that my last column is filled with an asp:checkbox and if I add the onblur event it will never gets fired. I tried it with an Textbox and it would work.

The next problem is, that the onblur event is fired in generell every time when the control is losing the focus. But I want to update the row if and only if the Tab is pressed in the last column.

Thanks in advice.
0
Maria Ilieva
Telerik team
answered on 23 Feb 2012, 09:07 AM
Hi Dietmar,

The described behaviour is expected for asp checkbox as the parent span does not notice when checkbox is checked or unchecked, so the event will not fire when it is attached this way. In this case I would sachets you try using input type=checkbox inset of asp CheckBox.
Also in order to avoid running the script in any other cases when the controls looses focus, but do it only on Tabbing out you could add a check in the client script to check for the tab key code and only in this case perform the needed action.

Kind regards,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
BigzampanoXXl
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
BigzampanoXXl
Top achievements
Rank 1
Share this question
or