Grid focus problem

4 posts, 0 answers
  1. Steve
    Steve avatar
    11 posts
    Member since:
    Nov 2012

    Posted 13 Jun 2013 Link to this post

    Hi, I have a problem with how the radgridview receives focus after pressing Tab in that it the grid container is the object to receive the focus and not any content in the grid. This means that if a user is tabbing around the screen they have to hit tab twice to move the focus to the selected row/cell in the grid, because one tab results in the container being focused and then another tab is required to move to the row/cell. Is there any way that the focus can be disabled on the grid container? I have tried changing the tabnavigation attached properties but these dont seem to offer the required solution. Basically if I just had a couple of grids on a screen I want the user to be able to tab between the selected rows/cells in one key press, not the two that are currently required.

    Any help appreciated.
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 18 Jun 2013 Link to this post

    Hi,

    You could handle the behavior on pressing the initial Tab key on a RadGridView subscribing for its GotKeyboardFocus event. Once it is raised you can set the CurrentCellInfo for the RadGridView. 

    Regards,
    Didie
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Steve
    Steve avatar
    11 posts
    Member since:
    Nov 2012

    Posted 18 Jun 2013 Link to this post

    Yes, tried that and it works when the control receives focus but it prevents you from using shift+tab to go back out of the grid, as the grid gets focus again when you leave the cell. Thought about checking which control has passed the focus to the grid but not sure if this is possible or will work.

    Just thought that there may an easy way of preventing the grid container from getting focus in the first place.
  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 20 Jun 2013 Link to this post

    Hi,

    I am afraid that there is not a better option to suggest you. It will be the entire RadGridView to take the focus first. 

    Regards,
    Didie
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top