How to rearrange columns programatically in flat form ?

Answered

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 ?
 
Thanks

1 answer

Public
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: 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?
Regards,
Tanya

Please login or Register to Submit Answer