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

Disabling grouping on one column in grid

2 Answers 536 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 19 May 2014, 05:51 AM
I am initializing a kendo grid from a pre-populated html table and want to disable grouping on one column (as it is a free text column).

 var grid = $(gridElementSelector).kendoGrid({<br>            filterable: false,<br>            sortable: true,<br>            pageable: {<br>                refresh: false,<br>                pageSize: 10,<br>                pageSizes: true,<br>                buttonCount: 2,<br>                input: false<br>            },<br>            groupable: true<br>        }).data("kendoGrid");

I have tried the following after initialization and the column property "groupable" is set to false but the grid still allows me to drag the column header into the group area.

grid.columns[2].groupable = false;

Any ideas on how to make one column not groupable?

2 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 19 May 2014, 08:15 AM
Hi Mark,


In the current case you could add the data-groupable attribute to the column header and set it to false. Here is a runnable example, that demonstrates this.

I wish you a great day!

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Mark
Top achievements
Rank 1
answered on 19 May 2014, 08:39 PM
Perfect thanks. 
Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Mark
Top achievements
Rank 1
Share this question
or