Tabulator: Setted column widths remain unaltered

Created on 7 May 2018  路  2Comments  路  Source: olifolkerd/tabulator

Hey Oli,

I need the manually setted (dragged) column widths to remain unaltered after a postback or browser refresh. Probably stored in the session. How can I do that?

Thanks!

Question - Ask On Stack Overflow

Most helpful comment

Thanks a lot, persistentLayout worked! :)

All 2 comments

Isn't that what the persistentLayout:true is for?
I never tried it, but if that doesn't save column width, you could use the columnResized callback to read the new column width, save it in a cookie and then load/restore it when the page loads the next time.
Instead of a cookie you could AJAX it to the server if you have to use sessions for that, but I'd rather go the cookie way. :]

Thanks a lot, persistentLayout worked! :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sphynx79 picture sphynx79  路  3Comments

soo1025 picture soo1025  路  3Comments

jiaqianliCn picture jiaqianliCn  路  3Comments

cemmons picture cemmons  路  3Comments

tomvanlier picture tomvanlier  路  3Comments