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

Which event(s) get fired when I click the select all checkbox in my grid column header?

1 Answer 109 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 15 Dec 2011, 02:39 PM
Hi

I have several grids which have a selection column.

When I select the individual rows I get an ItemCommand 'RowClick' event.
When this happens I want to manipulate the UI depending on the number of items selected.

If its a single selection I do certain things. If its a multi-selection I want to do something different.

Obviously if I click the checbox in the column header ALL the items get marked as selected,
but I don't get an ItemCommand 'RowClick' event.

So my UI doesn't behave as I want.

Presumably there is some event getting fired. I just don't know what to detect.

TIA

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Dec 2011, 03:33 PM
Hello,

If you are using GridClientSelectColumn then OnRowSelecting and OnRowSelected events will fire.

If you are using checkboxes inside GridTemplateColumn for selection then OnCheckedChanged event will fire.

-Shinu.
Tags
Grid
Asked by
Tim
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or