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

Columns off when I use Grouping

3 Answers 68 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Boone
Top achievements
Rank 2
Boone asked on 17 May 2012, 07:50 PM
When I turn grouping on, my columns get out of order. I don't want the column I am grouping on to show in my grid since I am using ID's that will mean nothing to the user. I am also using a script template.

I also don't want a title in the group header. I just want a blank line.


How do I achieve this? Getting columns to line up and removing the header text.

Code attached.

3 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 18 May 2012, 09:11 AM
Hello Boone,

Row template must handle the generation of group cells. I suppose this is the reason for having those cells misaligned. Here is a sample how to achieve this.
http://jsfiddle.net/THRQV/

All the best,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Boone
Top achievements
Rank 2
answered on 18 May 2012, 04:55 PM
When I use your code I get an error. Please look at the code I attached in the original.

Error: this.group is not a function
Source File: http://cdn.kendostatic.com/2011.3.1407/js/kendo.all.min.js
Line: 11
0
Nikolay Rusev
Telerik team
answered on 23 May 2012, 08:40 AM
Hello Boone,

Unfortunately I cannot reproduce initially reported problem as there isn't runnable solution(jsFiddle) available for it. Can you provide us with such solution?

The error might be caused if the template from my last post is used, but rowTemplate setting in the Grid is not properly set. Should be: rowTemplate: $.proxy(kendo.template($("#rowTemplate").html()), dataSource)

Greetings,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Boone
Top achievements
Rank 2
Answers by
Nikolay Rusev
Telerik team
Boone
Top achievements
Rank 2
Share this question
or