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
6 Answers, 1 is accepted
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
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.
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
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.
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
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 :)