How to keep formatting
How to keep formatting
tyroneschiff
Posts: 5Questions: 0Answers: 0
I update my DataTable with new data when a user selects a particular radio button. I'm finding that when I try to update the DataTable with new data after a user clicks the radio button, the DataTable loses its formatting. It is no longer searchable, I can no longer select the number of rows, I cannot sort the data, etc. I am trying to figure out a way to maintain the formatting when the DataTable is updated via AJAX.
Has anyone else encountered this before?
Has anyone else encountered this before?
This discussion has been closed.
Replies
Allan
Thanks so much for your response. I was writing the HTML directly into the table just as you illustrated. I think you're correct that using the API methods would be better, but am finding the documentation rather confusing to implement.
Is there a way to use fnAddData with json formatted data from an external file?
Allan