Using Keystrokes on Grid

2 posts, 0 answers
  1. Nick
    Nick avatar
    8 posts
    Member since:
    Apr 2011

    Posted 01 Sep 2011 Link to this post


    I'd like the grid to be as much keyboard driven as possible for navigate and data entry.

    I have two problems.

    1. When on a CheckBox cell I'd like the enter key to be used as a toggle for checked/unchecked.
    2. When on the Collapse/Expand cell of a hierarchy I'd like Enter to toggle Expand/Collapsed.

    Is there a way to achieve this without having to resort to events.  Can it be done through attached behaviours and does anyone have a sample for this examples.


  2. Ivan Ivanov
    Ivan Ivanov avatar
    1218 posts

    Posted 03 Sep 2011 Link to this post

    Hello Nick,

    Since the hierarchy column cells are not accessible through keyboard navigation, I presume that you had the GridViewToggleRowDetailsColumn in mind. I have prepared an example project for you. I am attaching it for your reference.

    Kind regards,
    Ivan Ivanov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top