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

Template for Group By Heading?

1 Answer 219 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 01 Dec 2015, 11:55 PM

I have a grid that has a field I want to group by. The field comes from the db in number format, I use the template on the column to dynamically changed it to the actual verbose type, such as "molecule", "assembly", etc.

 That all works fine and displays in the grid correctly. My issue is this, when I do a group by that column instead of the verbose type values I'm getting their numeric equivalent. Is there some way to have the Group By header display the same value as the template output for the column?

 

Regards,

m

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 02 Dec 2015, 07:53 AM
Hi Michael,

For achieving the desired result you will have to set the groupHeaderTemplate for the column in question and perform the same logic for changing the numeric value to a string value. In the following help article you will find information and example on how to set the groupHeaderTemplate:
Hope this helps.


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
Michael
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or