Data being deleted

Data being deleted

bruttenbrutten Posts: 2Questions: 1Answers: 0
edited July 2015 in Free community support

I have a basic table that uses the ColVis plugin to hide/show columns dynamically. Data is added to this table using jQuery's .append function. The data gets added to the table perfectly and as expected. When I hide one of the columns using ColVis, the data gets deleted. Along with ColVis, when I try resort the rows by click on the column header, the data is also deleted. Any idea why?

Note: Only the data that was added after creation get deleted. If I have 3 rows (1 was hard coded in HTML and the other 2 were added at a later time using jQuery .append), when using ColVis or ordering the columns, only the 2 appended rows get deleted, the HTML hard coded row is unaffected.

Any help would be most appreciated!!

Answers

  • bruttenbrutten Posts: 2Questions: 1Answers: 0

    Never mind, problem fixed. I was using .append, you need to use DataTables add row feature

This discussion has been closed.