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

[Solved] Multi row select with ctrl key

4 Answers 94 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ramyashree
Top achievements
Rank 1
Ramyashree asked on 21 Feb 2011, 04:27 PM
Hi,

I have set the selection mode of my grid view to be multiple ... And hence each time I click on a row , it gets selected ... But I would prefer multiple rows to get selected only in combination with the 'ctrl' key...  Is there any property of the grid view which helps in accomplishing this..?

Thanks in Advance,
Ramya

4 Answers, 1 is accepted

Sort by
0
Accepted
Vanya Pavlova
Telerik team
answered on 22 Feb 2011, 02:02 PM
Hello Ramyashree,

 
I am not quite sure what you mean by "only in combination with the 'ctrl' key". May you please elaborate a little bit? By default when you hold the Ctrl key you have to click on the rows which you want to be selected and they become selected. In case you need to predefine the default keyboard navigation you have to create your own CustomKeyboardCommandProvider as it is described at the following blog post.


Best wishes,
Vanya Pavlova
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Ramyashree
Top achievements
Rank 1
answered on 22 Feb 2011, 04:10 PM
The situation which you have said here is what I  actually wanted... I want to be able to select multiple rows with ctrl key.. But by default, the rows are getting selected just with mouse selections ... I want them to get selected with ctrl key...

Thanks,
Ramya  
0
Yordanka
Telerik team
answered on 22 Feb 2011, 04:25 PM
Hi Ramyashree,

The desired behavior can be achieved by setting SelectionMode to Extended. More info about Selection functionality can be found here.
 
Greetings,
Yordanka
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Ramyashree
Top achievements
Rank 1
answered on 22 Feb 2011, 05:01 PM
Ohhh .. Thank you so much... It's that easy... I am feeling so embarrassed for not figuring it out myself..  
Thank you again ...

Ramya
Tags
GridView
Asked by
Ramyashree
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Ramyashree
Top achievements
Rank 1
Yordanka
Telerik team
Share this question
or