This is a migrated thread and some comments may be shown as answers.

Keyboard support for row selection

6 Answers 102 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 01 Sep 2010, 01:33 PM
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

6 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 03 Sep 2010, 10:16 AM
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
0
Jan
Top achievements
Rank 1
answered on 06 Sep 2010, 12:51 PM
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.
0
Milan
Telerik team
answered on 07 Sep 2010, 08:56 AM
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
0
Jan
Top achievements
Rank 1
answered on 08 Sep 2010, 09:24 AM
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.



0
Milan
Telerik team
answered on 08 Sep 2010, 10:19 AM
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
0
Jan
Top achievements
Rank 1
answered on 09 Sep 2010, 11:00 AM
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 :)
Tags
GridView
Asked by
Jan
Top achievements
Rank 1
Answers by
Milan
Telerik team
Jan
Top achievements
Rank 1
Share this question
or