unable to serialize colvis library elements
unable to serialize colvis library elements
I have an application in java using struts2 framework. I am using datatables 1.10.2 to display data in grid.
I have about 8 columns in datatable. I have used colvis library for column filtering, show/hide feature, search feature. The code works with client side pagination. I am trying to implement serverside pagination. I have defined columns, search, order collections and all other properties that are sent from datatables to server. The search feature works without colvis library. I wanted to implement column filtering and show/hide feature so I used colvis library. The issue I have is that the data is not being serialized. I meant the columns, order, search are not being serialized. I see them as "object" in firebug.
I tried to see if the function listed below is being invoked. I do not see any call coming to it.
Look forward for some help in resolving this issue.
following is my ajax call in datatable definition
"ajax" :
{
"url": "getdata?showall=yes",
"dataSrc": "collectionData,
"dataType" : "json",
"type": "POST",
"data" : function (d) {
return {'paginationData': JSON.stringify(d);
}
}
When I load the