Configuring TabStop behavior

5 posts, 0 answers
  1. Rashad Rivera
    Rashad Rivera avatar
    63 posts
    Member since:
    Aug 2009

    Posted 16 Oct 2009 Link to this post

    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
  2. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 20 Oct 2009 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Rashad Rivera
    Rashad Rivera avatar
    63 posts
    Member since:
    Aug 2009

    Posted 21 Oct 2009 Link to this post

    I was hopping you would not say that.  :)  But I'll try that and let you know. 
  5. Rashad Rivera
    Rashad Rivera avatar
    63 posts
    Member since:
    Aug 2009

    Posted 25 Oct 2009 Link to this post

    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
  6. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 27 Oct 2009 Link to this post

    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.
Back to Top
UI for WPF is Visual Studio 2017 Ready