how to save colum visibility

how to save colum visibility

aly14aly14 Posts: 4Questions: 2Answers: 0

hi ;
I am using state save, But its disable when user's re-login , I want to save column visibility permanently

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    Hi @aly14 ,

    stateSave is the DataTables way of saving state - if this is working, you'll need to implement your own solution, I'm afraid.

    Cheers,

    Colin

  • aly14aly14 Posts: 4Questions: 2Answers: 0

    its working if users not relogin , its possible to save to cookie or database , if possible , may u Show a little example .

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    One thing you could do is store the state off the PC - that way whenever the user logins in, the table requests it from the same source. There's an example of that on the stateSaveCallback,

    Cheers,

    Colin

  • aly14aly14 Posts: 4Questions: 2Answers: 0

    is it possible save and read from cookie.

  • kthorngrenkthorngren Posts: 21,144Questions: 26Answers: 4,918

    The stateSaveCallback states this:

    This callback method allows you to change where the state is saved (for example you might wish to use a server-side database or cookies).

    Kevin

This discussion has been closed.