Relative Content

Tag Archive for javascriptdatatables

Checkbox in grid columns disappears when checked

While trying to add checkbox in eachfield of the column. Checkbox is shown correctly but when ever i check the box the box disappears. Why is that?
I tried different input tags even select tags but nothing seems to be working.
This is in JS:

DataTables.js: Custom ordering function not applying

I have a DataTables.js table with a column that has numeric values with decimal points. Currently, it’s being ordered like "1", "1.1", "10", "2", but I would like to order it as "1", "1.1", "2", "10". Strangely enough, if I click the ordering arrow after the page has loaded, it does order it the way I want. Anyway, according to their documentation, something like this should work:

How to add a row in jQuery Datatables with data-order present

I’m encountering an issue with jQuery DataTables where dynamically added rows do not display correctly when I include a data-order attribute for sorting. The rows are added via JavaScript, and while the action buttons are visible, the date column with the data-order attribute does not show up.