Creating Views

Creating Views

thestasthestas Posts: 1Questions: 1Answers: 0

Hi There,

I was wondering if anyone can help me out? Is it possible to create and save a view based on a full DataTables view.
For example if I had three columns [ID, Name Price] if I wanted to hide ID and filter Price for all values greater then 2. Is there a way that I can save the state of this DataTables to a server? And then be able to reload this view later?

I'm using MVC5 Razor and do not know how I can pull the state of the DataTables back into the Controller.

Answers

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin

    You would need to use the API to get the current state information about the table (page.info(), etc) and save that information to wherever. Then use the API to load that information back when you want to reinstate that view.

    So yes, quite possible, but not builtin I'm afraid.

    Allan

This discussion has been closed.