How to rearrange columns programatically in flat form ?


Hi Team,
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 ?

1 answer

Tanya Gryshko Flexmonster 4 days ago

Hello, Ganesh,
Thank you for writing to us.
The column order is defined when you specify the slice. For example, please open this demo: 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?

Please login or Register to Submit Answer