Keyboard support for row selection

7 posts, 0 answers
  1. Jan
    Jan avatar
    58 posts
    Member since:
    May 2010

    Posted 01 Sep 2010 Link to this post

    Hello, 
    Does the RadGridView have any keyboard support when selecting records?
    This is what we need to accomplish:
    1.Select multiple records making use of SHIFT + Cursor Up/Down
    2. Select multiple records making use of CTRL + Cursor Up/Down
    3. Select multiple records making use of CTRL + SPACE
  2. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 03 Sep 2010 Link to this post

    Hi Robert Lukkenaer,

    You can select multiple items using SHIFT + Up/Down.  Currently selecting items with the Space key and CTRL + Up/Down is not possible but we could possibly implement this behavior using a custom KeybordProvider as demonstrates here

    I am really interested to hear more about selecting items using CTRL + Cursor Up/Down. How should CTRL + Up/Down selection work? In most scenarios CTRL + Up/Down moves the current item and no selection is performed. 


    Kind regards,
    Milan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Jan
    Jan avatar
    58 posts
    Member since:
    May 2010

    Posted 06 Sep 2010 Link to this post

    Hi Milan,

    How can I  make the grid respond to SHIFT + Up/Down for selection?

    to answer your question, CTRL + Cursor Up/Down should do the same as SHIFT + Up/Down, but if I can get the shift to work, that would be enough I suppose. CTRL+ Space should select a row with a focus.
  5. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 07 Sep 2010 Link to this post

    Hi Robert Lukkenaer,

    Setting SelectionMode to Extended will allow you to select multiple items by holding down the Shift key. 

    I would need a little bit more info about the expected behavior. Currently when you navigate (move up/down) rows are automatically selected. Is that the behavior that you expect or rows should not be selected when pressing Up/Down? Another question that comes to my mind is if Space is expected to toggle row selection (select/unselect) or just select an item.


    Regards,
    Milan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Jan
    Jan avatar
    58 posts
    Member since:
    May 2010

    Posted 08 Sep 2010 Link to this post

    Hi Milan, 
    When I put the SelectionMode to Extended I can select multiple row with shift + click, but not with shift + up/down...
    What I wanted to achieve is the full keyboard support without the mouse.



  7. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 08 Sep 2010 Link to this post

    Hello DCMS,

    That is strange. There should be no problem to perform such selection. Can you reproduce the problem with the attached sample application?


    Greetings,
    Milan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. Jan
    Jan avatar
    58 posts
    Member since:
    May 2010

    Posted 09 Sep 2010 Link to this post

    Sorry Milan, 
    My bad, it does work. I had a stupid mistake in code, basically I have set SelectionMode
     to extended, and then reset it in another part of the code :S

    Thanks for your time :)
Back to Top
DevCraft banner