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

How to check the checkbox on group header row?

2 Answers 448 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Thanh
Top achievements
Rank 1
Thanh asked on 12 Sep 2017, 03:21 AM

Hello,

I'm using Telerik version 2017 R2 for Winform app.

I have a gridview with "EnableHeaderCheckBox" option is "True".

When I group the gridview by a column A, then click on the checkbox on gridview header row (I meant "Select All" checkbox), please see the picture 1 below

[Picture 1] Click on Select All checkbox

[Picture 2] The result of click on Select All checkbox

As you can see in the result (Picture 2), the checkboxes of group header row is not checked automatically. When I click on the Select All checkbox, it just affects to the children checkboxes in each groups, not the checkboxes on group header row.

How can I check all the checkboxes on group header row when I click on the Select All checkbox?

Please give me an advice! Thanks so much!

2 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 12 Sep 2017, 08:28 AM
Hello Thanh,

You need to subscribe to the RowsChanged event and update all rows. I have attached a project that shows this.

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Thanh
Top achievements
Rank 1
answered on 12 Sep 2017, 11:19 AM

Hello Dimitar,

Your solution, it works perfectly.

Thank you very much!

 

Regards,

Thanh

Tags
GridView
Asked by
Thanh
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Thanh
Top achievements
Rank 1
Share this question
or