Manually Loading Column Order

Tags: #<Tag:0x00007efc6b748cb8>

I am manually saving column moves (among other things) because I have multiple instances of the grid, and therefore cannot rely on persistentState. I wanted to know is it possible to manually load a column order to the table?

For example, if I manually save “[0,1,4,3,2]” into local storage, I’d like to be able to manually apply that to the column orders. Is this possible?

Hi @epgibney

Sure. The manualColumnMove not only accepts boolean values but also an array of indexes https://jsfiddle.net/2phcfw4q/ (if you moved only a couple of indexes at the beginning you can skip the rest in the array just like in the example).

Great, thank you. You can consider this resolved now.

I’m happy I could help. If you’d need anything just let me know here or on the email support@handsontable.com