Posted 30 September 2019, 1:06 am EST
Hi,
I use layoutDefinition.push to create header
Forums Home / Wijmo / General Discussion
Posted by: lygiabao15ck1 on 30 September 2019, 1:06 am EST
Posted 30 September 2019, 1:06 am EST
Hi,
I use layoutDefinition.push to create header
Posted 30 September 2019, 1:07 am EST
but they not show in layout?
Bao-LG
Sorry my network have problem!
Posted 1 October 2019, 2:52 am EST
Hi,
To update the layoutDefinition of the MultiRow, you will need to create a new layout from the original layout and then reassign it to the MultiRow control. Please refer to the code snippet and the sample below:
let ld = JSON.parse(JSON.stringify(multirow.layoutDefinition));
ld.push({
cells: [{ binding: 'sales', header: 'Sales', width: 200 }]
});
multirow.layoutDefinition = ld;
https://codesandbox.io/s/angular-tr329
Regards,
Ashwin
Posted 1 October 2019, 6:20 am EST
Hi,
I want column header is multi line and column data is single line
Please, help?
Posted 3 October 2019, 4:15 am EST
Hi,
To achieve the desired behavior, you will need to create a new column header with the same binding and use the MergerManager class to merge these new data cells. Please refer to the sample below:
https://codesandbox.io/s/angular-lb3nk
In this sample, if you will click on the button, a new header ‘Not Sales’ will be added above the ‘Sales’ column. Then, using the MergeManager class’ getMergedRange method, the data is merged.
Let me know if this was your requirement.
~regards