Search
12897 results 11-20
Reference
colReorder.order()
› Get / set column orderThis method provides the ability to get the current column order of a DataTable and also to set a new order. The reorder triggered by this method is immediate and there is no requirement to redraw the table.DataTables.Order
› DataTables ordering objectOrdering in DataTables can be set with order or the order() method.order.listener()
› Add an ordering listener to an element, for a given column.used). Note that unlike order() and columns().order() when the ordering listener attached by thisorder.fixed()
› Get / set the fixed ordering applied to the table.a DataTable. The "fixed" ordering is a column order that will be appliedcolumns().order()
› Order the table by the selected columns.not actually perform the order. To have the ordering performed, use the draw()column().order()
› Order the table by the selected column.not actually perform the order. To have the ordering performed, use the draw()searchPanes.order
› Set the order of the PanesThis option is an alias to searchPanes.order, which should be preferred when using DataTables 2+. It can be used to configure SearchPanes regardless of how the panes are inserted into the document (layout or searchPanes). Please refer to the documentation for searchPanes.order for full details of this option.
Examples
Forum
- 26th Sep 2024Export button make incorrect order in headersExport button Headers wrong order if use columns order in revert order buttons: [ { extend: 'excelHtml5', exportOptions: { columns: [2,1 ], stripNewlines: false, orthogonal: "export" }, } ], Will result Header 1, Header 2 Value 2, Value 1 Order 1.* version all work correct
- 12th Sep 2024How do I reset the table sort to initial sort order@kthorngren -- that's exactly what I'm looking for. I hadn't even thought about init() since I was doing a search through the API for "order". @allan -- I still encourage a built-in method! Thanks!
- 3rd Sep 2024Child Rows do not export to Excel in applied sort orderin the applied sort order. In this test case,
- 3rd Sep 2024Server side processing lost order array post valueHi, the same thing happens to me as shown in this link https://datatables.net/examples/server_side/simple.html which uses serversideprocessing. On the third click on a field, it loses the sorting (the order array is missing in the post)
- 24th Aug 2024Sort table first by set text column order, then by numerical columntopEnd: null }, info: false, ordering: true, paging: false, order: [[1, 'asc'], [12, 'desc']],
- 7th Aug 2024Initial Order Settings Not Workingto - the default sort order is now ascending order
- 29th Jul 2024Order array with empty directionI noticed that the order array can contains an
- 7th Jun 2024order + reorder not workingbe redrawn and the order will be reset based
- 1st Jun 2024The order by icon is showing up for a column where orderable=falsebeen surviving without specifying order anywhere -- the database has
- 23rd May 2024How to order 2 row groups in a specific orderto be able to order the inactive users first,