column update with fnReloadAjax
column update with fnReloadAjax
I've been searching for a while and I can't find any specific examples or plugins that let me update the column def when doing a fnReloadAjax call.
my code successfully updates the table data ... but in my case, I may have a change of columns in the return data. For example, a user may search first name, and the table updates for first name data. Then the user adds a query term for last name, the table then should add a column to show last name.
In the JSON object returning from the server in the ajax call, I tried just redefining aoColumns as an element (at the same level as aaData), but it doesn't initialize like the rows do in the fnReloadAjax call.
Is there a way to also update aoColumns after table init?
Thanks
my code successfully updates the table data ... but in my case, I may have a change of columns in the return data. For example, a user may search first name, and the table updates for first name data. Then the user adds a query term for last name, the table then should add a column to show last name.
In the JSON object returning from the server in the ajax call, I tried just redefining aoColumns as an element (at the same level as aaData), but it doesn't initialize like the rows do in the fnReloadAjax call.
Is there a way to also update aoColumns after table init?
Thanks
This discussion has been closed.
Replies