Can i force re-rendering of the table?

Can i force re-rendering of the table?

BurhanuddinBurhanuddin Posts: 1Questions: 1Answers: 0

I have a table in which 2 columns are of "date" type. I have implemented a "render" function for those two columns which makes the display format as i want. But if the user changes the date/time format can I force the data table to render again with the new format?

Please have a look at the fiddle: https://jsfiddle.net/n014c5kh/2/

I have implemented an "onchange" event for the two "SELECT" elements and they change the format variable but it obviously doesn't affect the rendered table. I want to render again.

I tried draw() but that doesn't work.

One option is to change the table <td> content using DOM manipulation but the problem is that if the user has applied search then all the table rows are not available.

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.