How do I set two different column value in multi-group header

How do I set two different column value in multi-group header

dulalbdulalb Posts: 1Questions: 1Answers: 0
edited June 2019 in Free community support
{
                            "data": "GrantID"
                        },
                        {
                            "data": "GrantName"
                        },                        

                        ],

                        "drawCallback": function (settings) {
                            var api = this.api();
                            var rows = api.rows({ page: 'current' }).nodes();
                            var last = null;

                            api.column(7, { page: 'current' }).data().each(function (group, i) {
                                if (last !== group) {
                                    $(rows).eq(i).before(
                                        '<tr class="group"><td colspan="4">' + group + '</td></tr>'
                                    );

                                    last = group;
                                }
                            });
                        },

//How do I replace group by GrantID + '-' + GrantName ?

Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    Hi @dulalb ,

    Are you using RowGroup? We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.