I need to maintain column order in flat form and currently pivot takes the order in which headers are present in JSON object. JSON doesn’t maintain order and that’s why I need to set the order programatically.
How can I do that with flexmonster ?
Thank you for writing to us.
The column order is defined when you specify the slice. For example, please open this demo: https://jsfiddle.net/flexmonster/17y8edL8/5/. At line 11 you can see that “Quantity” is added first, then “Price” and “Color”. The same order is shown on the grid. If the order in the slice is changed, the order on the grid will change as well.
Does the suggested approach work for you?