7 Answers, 1 is accepted
To change the default title description you could add a handler on the dataBound event and use jQuery to replace the text, which will be shown if there are not any groups. The following code snippet could be used for this purpose:
Regarding the second part of your question - there is not supported option for changing the text of the group designations.
All the best,
the Telerik team
This is nice but how do I set the indicator's text? Specifically, how do I set the the text for: $(".k-group-indicator").text("Your text here");
I need the grouping buttons to have dynamic text. The field name does not cut it. Why is this so difficult?
You can use this dojo example (http://dojo.telerik.com/ulIQO/2) as a starting point. You could also look into using a function with the Grid's group event that changes the title of the button.
At this time there is no built in, easier way of doing this. You can submit a feature request at the Kendo UI feedback portal however. If the item accumulates enough votes, it will be taken into consideration for future releases.
Wow Orlin, thanks for pointing me into the right direction. I have since solved our problem, and I think this would be useful for Kendo Grid built in features...
Anywhere, here is my code expanded. Try it out yourself. Thanks a lot! Cheers!
BTW, this mentioned code will only work if you set something in the columnHeaderTemplate (innerHTML).
For example my column definition is like so:
BTW, my code will only work by setting the grid's columns headerTemplate. It looks for a match in the innerHTML (since there is no straightforward way to make a relationship between data field and column header).
You will need a column definition like so:
I'm glad I was able to help you sort this out.
Thank you for the code. I am sure others will find it useful as well.