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

Detecting a selection change other than by the RowClick ItemCommand

1 Answer 68 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 08 Jul 2011, 06:51 PM
Hi

I have a multi-select RadGrid.

I have supplied and ItemCommand handler in my server side code,
and it gets triggered when I click on a row.

I get the RowClick item command

However if I have focus on the grid and hold the shift key down
and then I hit the down or up arrows the Selection column
changes, but I don't get a server side ItemCommand triggered.

Is there some other event handler I need to hook into to handle
the shift key mechanism for multi-selecting?

TIA

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 12 Jul 2011, 03:04 PM
Hi Tim,

I am copying my reply from the other forum thread that you have opened on this matter as well. If you have further enquries on the matter, please post there, so that we avoid duplicate posts. Thanks for your understanding.

Multiselection using the Shift key is a client-side feature of the grid. It does no cause a postback and is used only for client selection. That is why it does not fire the ItemCommand event.
Handling such action on the server would require customizations through client script. You could use the RowSelected client event to capture the selections on the fireCommand() method to fire a custom command on the server and then handle it accordingly in the ItemCommand server event handler of the grid.

Kind regards,
Tsvetina
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Grid
Asked by
Tim
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or