Hi, I have a situation where the field in a grid column is an ID, we display a description using the template. In this case, it's a grade level, and for example "0" is "Kindergarten". We want to display Kindergarten instead of 0 if possible in the group header, it's clearer to our users.
Here is the current column definition. I've tried different things using a function, haven't found the right code, if it's even possible.
{ field: "GradeLevelId", title: "Grade Level", width: 120, template: function (dataItem) { return dataItem.GradeLevel; } , aggregates: ["count"], groupHeaderTemplate: "Grade Level: #=value# - Count: #=count#"},What I would like it to have the GradeLevel field show somewhere in the GroupHeaderTemplate instead of/or even in addition to, the value that is the GradeLevelID.
Thanks for any help.
Lisa