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

[Solved] RadGrid GridClientSelectColumn & Grouping

1 Answer 151 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Carl
Top achievements
Rank 1
Carl asked on 29 Sep 2009, 02:07 PM
Lets say I have a dataset that contains people. The people belong to one of many groups. Some of these groups have an additional attribute called "pooled", this is a boolean value.

When I bind this dataset to a RadGrid (columns declared at design time), the people are grouped by the name of the group to which they belong. For the groups that have the additional "pooled" attribute I would like just one GridClientSelectColumn for all the rows in that grid. For the other rows in other groups, the have individual GridClientSelectColumn's.

How do I do it? I am open to suggestions on different methods also.

Thank you in advance.

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 02 Oct 2009, 10:02 AM
Hello Carl,

I am not sure I understand your inquiry. You have GridClientSelectColumn for all data items in RadGrid. And you want a single select check box that will select all data items that have the "pooled" attribute. If this is  the case, you can use the GridTableVIew's CommandItemTemplate to define a custom command item that contains a select checkbox. You can attach a javascript method as an event handler to the onclick event of the checkbox, in which you can loop over all your data items using the client-side RadGrid API, check for the "pooled" attribute and select/deselect the row.

Regards,
Veli
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Carl
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or