Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82149

Styling content within datatables after Datatables updates

$
0
0
I have a table that contains various elements - specifically drop downs. Im using select2 for these dropdowns and have various styles applied.
Im using datatables in DOM mode - the table data is sent back to the client and datatables is overlaid on top to provide all its functionality.
However, when Datatables paginates the table, sorts the table etc. any drop downs that were not on screen initially, do not get the select2 styling applied (since the jquery selector that selects the <select> elements doesnt get re-run).

Question: Is there a hook in datatables that will notify me whenever Datatables is changing the displayed data on screen so that I could add in a $('select).select2() invocation on the table?

Regards

Nick

Viewing all articles
Browse latest Browse all 82149

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>