Colvis calling to server
Colvis calling to server
I have an application with really many fields that are not always used because they hare hidden with ColVis plugin.
I see that the largest part of the size of my page is the JSON response from the server (like 2mb).
I think it would be useful to have a callback to the server when the show/hide colum is done for just asking the data of the columns that are really displayed.
I do not know if this is a good idea but having this option could reduce the size of the data retrived.
It would also be useful to remember the actual columns between page refresh
I see that the largest part of the size of my page is the JSON response from the server (like 2mb).
I think it would be useful to have a callback to the server when the show/hide colum is done for just asking the data of the columns that are really displayed.
I do not know if this is a good idea but having this option could reduce the size of the data retrived.
It would also be useful to remember the actual columns between page refresh
This discussion has been closed.
Replies
I'll consider this for a future release - thanks for the suggestion!
Allan
Allan
Currently no - but firing a 'columnVisibility' event sounds like a good option. At the moment the closest is to bind your own events to the buttons in the ColVis list, which will work okay since the events are allowed to bubble - I'd suggest using a 'live' event handler rather than a static one! That way you will know when the column visibility is triggered.
Allan