Quantcast
Viewing all articles
Browse latest Browse all 82127

Re-rendering table from pre-existing column info

Hello, I am working on adding columns to a table (reloading the table with updated data) and I have it working with the original aoColumns array but instead I would like to pull the table's existing aoColumns settings using something like fnSettings().aoColumns. That way I could pull the current columns in case they have been updated and keep any settings like the current sorting or whatever. If I pass fnSettings().aoColumns to the new datatable as it is it works but if I try to add a new column with just stitle and mdata to that array it doesn't. I've even tried copying one of the existing columns data and changing the title/mdata but that doesn't work either. Is there a better way to do this or is there a required set of options I need to include with a new column since the others have more data from initialization? Thanks!

Viewing all articles
Browse latest Browse all 82127

Trending Articles