Can't find what you're looking for?

Contact us or post in our forums and we'll help you find an answer.

Show an Alternate Name for FlexGrid's GroupRow Property


When using FlexGrid with grouping enabled, the property value gets displayed. However, sometimes there might be a need to change the default value. For example, if grouping is enabled based on country, then the full country name will be displayed.  Let’s say we would like to display the initials of the country or the first three letters instead.

The following code snippet can be used to show custom value for grouping:

var gd = new wijmo.collections.PropertyGroupDescription('country',  function(item, propName) {    
     return item[propName][0]; // return country's initial  
     //return item[propName].substring(0,3) ; // return first three letter

Get the Latest Version of ComponentOne
Download the Free Trial Now