Editing groupDescriptions label

Posted by: davidmartin-bennett on 12 December 2022, 8:02 pm EST

    • Post Options:
    • Link

    Posted 12 December 2022, 8:02 pm EST - Updated 12 December 2022, 8:07 pm EST

    Hi

    I was wondering if there is a way to change the displayed label for groupDescriptions on a collection view, it looks like it is currently displaying the supplied field name in sentence case but I would prefer to specify my own.

    My code assigns the parameter “SectionDescription” to the groupDescriptions:

    this.items = new CollectionView(items, {
                groupDescriptions: ["SectionDescription"],
            });

    and when it renders front end it labels each section "Section Description: " followed by the value of the parameter.

    Is there a way to change this so I can assign the text that comes before the parameter value?

  • Posted 13 December 2022, 5:50 pm EST

    Hello,

    You can use the groupHeaderFormat for changing the header format of the group headers:

    https://www.grapecity.com/wijmo/api/classes/wijmo_grid.flexgrid.html#groupheaderformat

    Regards

  • Posted 13 December 2022, 8:14 pm EST

    Perfect thank you very much for your help

  • Posted 13 December 2022, 8:14 pm EST

    Perfect thank you very much for your help

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels