Hi ,
I have a grid that uses GroupByExpressions.In the grid columns, I am using GridClientSelectColumn(Checkbox) for selecting rows.
I want when user collpase a group, if user has checked any checkbox for that group, those checkbox should be cleared.
How can I achive this functionality. Please help.
Thanks
4 Answers, 1 is accepted
0

komathi priya
Top achievements
Rank 1
answered on 02 Jul 2011, 09:26 AM
Hi,
try in the ItemDataBound event..
For more clarification give your design..
try in the ItemDataBound event..
For more clarification give your design..
0

komathi priya
Top achievements
Rank 1
answered on 02 Jul 2011, 09:54 AM
Hi,
try in the ItemDataBound event..
For more clarification give your design..
try in the ItemDataBound event..
For more clarification give your design..
0

Pramod
Top achievements
Rank 1
answered on 05 Jul 2011, 09:27 PM
Hi,
Is it possible to give some code sample, what to do in itemdatabound event.
Thanks for your help.
Thanks
Is it possible to give some code sample, what to do in itemdatabound event.
Thanks for your help.
Thanks
0

Pramod
Top achievements
Rank 1
answered on 06 Jul 2011, 01:41 AM
Hi,
I found the solution. Here is the code if anyone wants to use this.
I put this code in grid prerender event
I found the solution. Here is the code if anyone wants to use this.
I put this code in grid prerender event
foreach (GridGroupHeaderItem GroupHeader in grdGroupTeam.MasterTableView.GetItems(GridItemType.GroupHeader))
{
if (GroupHeader.Expanded == false)
{
// Get all child items for that group
GridItem[] children = GroupHeader.GetChildItems();
foreach (GridItem item in children)
{
if (item is GridDataItem)
{
item.Selected =
false;
}
}
}
}