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

How to (un)hide when a column is used for grouping?

1 Answer 524 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Wilco
Top achievements
Rank 1
Wilco asked on 19 Oct 2015, 11:37 AM

Hi,

We're able to hide/show columns on initialization. But when we're using kendo's grouping functionality to change the group order by adding or removing a group we're not able to edit the hidden field of the grouped column directly. We'd like to hide the column which is used for grouping.

Any suggestion(s) to solve this nicely? Did I miss something in the demo/api?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Accepted
Konstantin Dikov
Telerik team
answered on 20 Oct 2015, 10:48 AM
Hi Wilco,

Thank you for contacting us.

If you need to hide the columns used for the grouping, the best way for achieving the desired result would be to handle the dataBound event of the grid, traverse the groups collection of the dataSource and hide the corresponding columns through the hideColumn method. For your convenience, following is an example for such implementation:
Please give this a try and see if the result meets your exact requirements.

if any other questions arise, please do not hesitate to contact us again.


Regards,
Konstantin Dikov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Wilco
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or