Search
12950 results 521-530
Forum
- 6th Sep 2018Select input filter orderHi @AAS , Yep, it's because by default it will be using standard dates (MM/DD/YYYY) - to convert to British (DD/MM/YYYY), do something like this. Cheers, Colin
- 13th Jul 2018How can I set the sort order of the SQL query?Ok. Thank you Allan. I'll give those a try.
- 5th Jun 2018Order a column that contains a range(a - b) based on the high value (b)Thank you @colin and @allan ! Both work.
- 5th Jun 2018How to order by date when it is rendered customHi @WebCodex , It looks like you're having a conversation with yourself there! :smile: From your last line, I'm guessing all is good now? Cheers, Colin
- 24th May 2018Add columns.type num-fmt custom order infoAs for the sorting I figured it out as you said (thanks!), I'll post it here for reference : { "targets": 0, "render": function ( data, type, row, meta ) { console.log(data.split('%')[0]); return type === 'sort' ? data.split('/')[0] : data; } }
- 28th Feb 2018Wrong order on string formatted columnOk got it ! I didn't understood the real scope of the wildcard "_" when defining columns. So I change my code for setting only this stuff to the data value, and setting a "display" property for the formatted string and it works. https://jsfiddle.net/LittleLama/ek9w68tL/35/
- 23rd Jan 2018Is it possible to make ascending order for dates go from newest dates to oldest dates?Maybe you can use columns.render to provide the date in a format that the sort operation can use (without the ()) as described here: https://datatables.net/manual/data/orthogonal-data Kevin
- 20th Dec 2017Individual column searching (select inputs) sort orderYes, exactly what @jvretamero says! You would use a custom sorting function that just coverts everything to lowercase so it will all remain the same: .sort( function ( a, b ) { return a.toLowerCase() > b.toLowerCase(); } ) http://live.datatables.net/gejojiqu/100/edit Your other option is to use an Intl Collator in the sort which has options to do a case insensitive sort. Allan
- 24th Oct 2017Order handleto attach the DataTables ordering listener to any element.
- 8th Aug 2017Parameters in serverside for load datatable pagination and orderDocumented here: https://datatables.net/manual/server-side