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

Configuring TabStop behavior

4 Answers 241 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rashad Rivera
Top achievements
Rank 1
Rashad Rivera asked on 17 Oct 2009, 02:10 AM
All,

   I am not sure how to configure my RadGridView's tab indexes (AKA TabStop), so the focus remains in the row details that I constructed.  Basically, for 508 compliance, if I can make the tab index iterate within the row detail instead of jumping back up to RadGridView cells, then it will pass compliancy.  Anyone have any suggestions? 

- Rashad Rivera
  www.omegusprime.com

4 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 20 Oct 2009, 08:37 AM
Hello Rashad Rivera,

You can create custom control that will hold your editors (I assume you have more than one textbox/editor) and will have handle KeyDown event. In the Keydown handler you have to move the focus from the current focused editor to the next one and mark the event as handled. If the focused element is the last editor then you wont handle KeyDown event so that the grid can focus next editable cell.
We will try to improve this behavior for the Q3 release.

I hope that this is acceptable for you.

Sincerely yours,
Hristo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Rashad Rivera
Top achievements
Rank 1
answered on 21 Oct 2009, 03:48 PM
I was hopping you would not say that.  :)  But I'll try that and let you know. 
0
Rashad Rivera
Top achievements
Rank 1
answered on 25 Oct 2009, 07:27 PM
Hristo,

   Thanks for the reply.  Although your solution will work, I found out that WPF has another built in behavior that did the trick.  I just set the KeyboardNavigation.TabNavigation, KeyboardNavigation.ControlNavigation, and KeyboardNavigation.DirectionalNavigation propertyes with a value of "Local" on my RowDetail control.  That did the trick and kept the navigation within the user control until it natrually needed to exit.  I just set the TabIndex on all UI controls within the my custom user control and everything flows natrually.  I kind of stumbled on this solution as I was writing my behavior as you had suggested.  
 
- Rashad Rivera
  www.omegusprime.com
0
Hristo
Telerik team
answered on 27 Oct 2009, 08:17 AM
Hello Rashad Rivera,

Yes this is build in behavior (to specify TabIndex) but my understanding was that you have custom cell edit template where you directly place your editors (not user control). Placing UserControl generally gives you more options - you can handle key or mouse events.
Thanks for sharing it with all.

Let us know if you need more information.

Greetings,
Hristo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Rashad Rivera
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Rashad Rivera
Top achievements
Rank 1
Share this question
or