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

How to set a Template or custom content for data item grouping cell?

1 Answer 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chaitali
Top achievements
Rank 1
Chaitali asked on 07 Oct 2013, 11:10 AM
We need to display a custom content in the grouping cells (the empty leftmost indentation cells in data rows). Currently it is impossible since the cells are rendered "statically":
337.function groupCells(count) {
338.    return new Array(count + 1).join('<td class="k-group-cell">&nbsp;</td>');
339.}

Currently I insert my cell content AFTER the rows are rendered using $('.k-group-cell', row).html(...). But, you know, it is far not the best approach.

Please implement a grid option, say, as follows:
groupCellTemplate:string|object (default: '&nbsp;')
it won't be too hard. And let me know if you would like me to contribute.

Thanks

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 09 Oct 2013, 11:01 AM
Hello Chaitali,

Thank you for the feedback.
Currently Kendo UI Grid provides only opportunity for customizing the GroupHeaderTemplate.
Implementing groupCell template is not in our immediate plans but I suggest you to submit this idea as a feature request on Kendo UI UserVoice portal. In this way the other users will be able to vote for it. If it turns out to be popular we will consider it for one of our future releases.

If you would like to contribute, you may extend the existing Grid widget with this functionality and post the solution on the forum or submit it as a custom Kendo UI plug-in at Kendo UI Labs.

Thank you in advance for the cooperation.

Regards,
Alexander Valchev
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
Chaitali
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or