Hi,
Im trying to group list grid field but records are not grouped when some values are empty. Is there a way to pull all empty values in a separate group while maintaining groups for other valid values. For eg., if values are 'A', '', 'B', '', 'B', 'A' then I want three groups: one group with all values 'A', another with all values 'B' and last group with all values ''.
I have implemented getGroupValue in my field like so:
But getGroupValue doesnt get called at all and records dont get grouped.
Thanks.
Im trying to group list grid field but records are not grouped when some values are empty. Is there a way to pull all empty values in a separate group while maintaining groups for other valid values. For eg., if values are 'A', '', 'B', '', 'B', 'A' then I want three groups: one group with all values 'A', another with all values 'B' and last group with all values ''.
I have implemented getGroupValue in my field like so:
Code:
getGroupValue : function(value, record, field, fieldName, grid) { if(!value) { return 'empty value'; } return value; }
Thanks.
Comment