Posted 22 September 2019, 11:40 pm EST
I want 2 headlines in FlexGrid.
Please, help?
Forums Home / Wijmo / General Discussion
Posted by: lygiabao15ck1 on 22 September 2019, 11:40 pm EST
Posted 22 September 2019, 11:40 pm EST
I want 2 headlines in FlexGrid.
Please, help?
Posted 23 September 2019, 12:45 am EST
Hi,
You may push a new Row to the columnHeaders panel of the FlexGrid. Please refer to the code snippet and the sample below for reference:
// add another header row
grid.columnHeaders.rows.splice(0, 0, new wjcGrid.Row())
// set the data in that row
grid.columnHeaders.columns.forEach((col, idx) => {
grid.columnHeaders.setCellData(0, idx, `Column ${idx}`)
})
https://stackblitz.com/edit/js-tyfdox
Let me know if this was your requirement.
Regards,
Ashwin