Search
11152 results 1081-1090
Forum
- 20th Apr 2023Duplicate sort icons in headerTypically this means you are loading conflicting CSS. In this case you could be using a styling framework and loading that CSS, dataTables.bootstrap5.min.css for example plus the default Datatables CSS jquery.dataTables.min.css. Only load the CSS for the framework. Take a look at the appropriate styling exmaple and click the CSS tab. Also see the Styling docs. The easiest way to get the proper library files is to use the Download Builder. If you still need help please post a link to your page or a test case replicating the issue so we can help debug. https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case Kevin
- 28th Feb 2023How to sort fields after editor.clear() / editor.add()?Could you not do: domEditor.add( { label: "answer", name: "answer", type: "textarea" }, 'answer' ); answer, although hidden, still has a position in the form. Allan
- 31st Jan 2023Hidden arrow sortOne option might be to use the order to remove the sorting classes applied by Datatables, like this: http://live.datatables.net/hepiraka/1/edit It removes the applied classes each time the table is sorted. Also it initially removes the classes in initComplete. Kevin
- 27th Dec 2022How can we sort currency column in datatableIt should be picked up automatically - see the final column in this example. If it isn't for you, please link to a test case showing the issue, per the forum rules. Allan
- 28th Nov 2022How to sort dates in DatatablesI got the answer without converting the date into timestamps. I used a CDN for my HTML code: then I added a single line of code for my date column using columnDefs columnDefs: [{ targets: [5], type:"date-eu", }] That's it! :)
- 11th Nov 2022Sort Data by desc defaulthttps://datatables.net/reference/option/order Just use "desc" instead of "asc"
- 29th Sep 2022Sort datatable by letter 'Y' when search function usedThank you Colin, worked nicely!
- 21st Sep 2022somehow my sort@colin Thank you so much. I just moved select box to outside of the table and enabled search works well.
- 25th Aug 2022Issue with Date sortDid you save your changes to a fork?
- 17th Aug 2022How to store the state info only for particular actions like colreorder,column visibility and sortI built a test case to show that delete data.select; works. You are right it doesn't work. The test case shows the object is deleted but when the state is loaded the select object is there. Not sure if @allan considers this a bug but it seems the StateSave library saves the select state after stateSaveParams. http://live.datatables.net/qoluroce/1/edit You can remove the StateSave information using stateLoadParams. The example shows this. Kevin