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

RadGrid does not Fire OnSelectedIndexChanged when Select All is used

2 Answers 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brad
Top achievements
Rank 1
Brad asked on 21 Jan 2016, 06:52 PM

Hi

 I have a RadGrid setup with AllowMultiRowSelection="true", AllowRowSelect="true", EnablePostbackOnRowClick="true" and an OnSelectedIndexChanged event.  This works great when I select any individual row but I need that even to fire when you use the select all option that appears in the header.  Is there any way to achieve this effect?

 Thank you

2 Answers, 1 is accepted

Sort by
0
Brad
Top achievements
Rank 1
answered on 22 Jan 2016, 08:02 PM
Just an update, I've also noticed this does not fire a postback when you unselect a row.
0
Eyup
Telerik team
answered on 26 Jan 2016, 08:02 AM
Hi Brad,

I am afraid there is no direct event to capture this action. You can access the Header checkbox in the code-behind, attach attribute for onclick, onchange, onmousedown, etc. and fire a command from client-side:
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/client-side-programming/gridtableview-object/methods/firecommand

If you prefer, I can prepare you a sample web site sample.

Regards,
Eyup
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Brad
Top achievements
Rank 1
Answers by
Brad
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or