Search
11152 results 1181-1190
Forum
- 22nd Jul 2016How can I sort my table that accesses a sql database (using the sorting method describeed on here)The tbody is inside of the foreach loop. Move it outside and it will work as expected. At the moment every row has a tbody, rather than there just being a single tbody (which currently is all DataTables supports). Allan
- 1st Jul 2016Can we sort the table with muliplt tbody?I'm afraid DataTables currently works with a single tbody element in the table only. Multiple tbody support is something I'd like to add in future, but to be honest that is probably quite a while off. You'd need to change the output to use a single tbody only or use jQuery to modify the DOM so there is a single tbody only before the DataTable is initialised. Allan
- 28th Jun 2016DOM Ordering to sort columns that has buttons? (TypeError: $.fn.dataTable is undefined)Ahhh. Thank you so much Allan. I should have read the doc carefully. It works just fine now.
- 8th Jun 2016Catching sort calls before the actual sortIf you attach a click event listener to the th element before you initialise the DataTable, your event will be executed first (since jQuery just executes them in sequential order). edit or a better way of removing a row by id? Use row().remove() with an id selector for row(). Allan
- 7th Mar 2016How to iterate over rows with a specified sort order.This is what I ended up with: c9.express.dataTable.rows({search:'applied', order:'applied'}).eq(0).each( function(index){ Thanks.
- 29th Dec 2015How sort a column of datatable , when output produced by using ssp class?when i clicked on table header , then that column not sorted by its own value
- 21st Dec 2015Disable column sort iconsGreat news :) Please mark this thread as solved.
- 5th Dec 2015Most of the default DataTable options gone after declaring moment() to sort YYYY-MMM-DD column.I think you should be getting a Javascript error shown in your browser's error console. You most certainly should if you use $.fn.tbl.moment. It doesn't appear that the Moment plug-in for DataTables is being included on your page. I would suggest you use: $.fn.dataTable.moment("YYYY-MMM-DD"); $(document).ready( function () { $("#SearchResultsDataTable").DataTable(); }); Selecting the element outside of the document ready function don't seem to make much sense to me - you'd be as well not having the document ready function at all. Allan
- 14th Nov 2015Why do the sort icons overlap my column headers?Fix it with CSS.
- 28th Aug 2015Anyone initializing datatables to sort by the last column?I'm interested in the case you are working on where you don't know the number of columns. Why using count-1 is harder?