How do I set two different column value in multi-group header
How do I set two different column value in multi-group header
dulalb
Posts: 1Questions: 1Answers: 0
{
"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.
This discussion has been closed.
Answers
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