ColVis & server-side processing
ColVis & server-side processing
First, congratulations for DataTable that is very powerful and flexible tools! I worked a good part of the week by coupling it with ColVis, TableTools and KnockOut and I could solve all my problems through this forum.
Except one: ColVis causes a request to the server every change columns. Which means in my case a very expensive and unnecessary treatment. So I modified the code Colvis and I wanted to have your opinion on this change...
[code]
"_fnDomColumnButton": function (i) {
...
$(nButton).click(function (e) {
...
// that.s.dt.oInstance.fnSetColumnVis(i, showHide);
// FIX: do not call server
that.s.dt.oInstance.fnSetColumnVis(i, showHide, false);
that._fnDrawCallback();
...
[/code]
thanks, raf.
Except one: ColVis causes a request to the server every change columns. Which means in my case a very expensive and unnecessary treatment. So I modified the code Colvis and I wanted to have your opinion on this change...
[code]
"_fnDomColumnButton": function (i) {
...
$(nButton).click(function (e) {
...
// that.s.dt.oInstance.fnSetColumnVis(i, showHide);
// FIX: do not call server
that.s.dt.oInstance.fnSetColumnVis(i, showHide, false);
that._fnDrawCallback();
...
[/code]
thanks, raf.
This discussion has been closed.
Replies
But your method is valid as well :-)
Allan