Search
11090 results 331-340
Forum
- 9th Aug 2013How to sort by doubleclicking (Header)[code] $('#element').on( 'dblclick', function () { table.fnSort( [[ 0, 'asc' ]] ); } ); [/code] You could add additional logic to have it sort desc on another double click if you want. Allan
- 21st Jul 2013filter only works after sortSolved it by doing initial sort expressively on the column that the filter didn't work on until it was filtered - changed line 120 in above example to: [code] oTable.fnSort( [ [6,'asc'] ] );[/code]
- 5th Jul 2013Search and Sort Alters Data When Using fnCreatedRowThis also happens when I sort on different columns
- 4th Jul 2013Multiple column sort with server sideIf you use aDataSort you can tell a column that it should do a multi-column sort rather than just by itself. Allan
- 3rd Jul 2013Bug: Sort number column, and sTypeah, just realised you need to include both the type detection plugin: http://datatables.net/plug-ins/type-detection and the sort plugin: http://datatables.net/plug-ins/sorting
- 24th Jun 2013Deactivate sort function on columnsMy html looks like this < table id="myTable"> col1 col2 I dont want this column to be sortable data 1 data 1 script $('#myTable').dataTable(); How do I exclude the sort funcionality from specific columns ?
- 17th Jun 2013custom sort function not working with mRenderwhen doing the initial sort. I've tried not using
- 16th Jun 2013How to sort on this column?that you want to sort on: http://datatables.net/development/sorting#type_based . There are a number of sorting plug-ins already valuable here
- 13th Jun 2013setting classes on headers for table with no initial sortThis seems to do the trick: [code] $('table th:first').removeClass().addClass('sorting_asc'); [/code] removeClass() with no params removes all the previous classes, then we add the ascending sort class (naturally run this after .dataTable() is finished)
- 6th Jun 2013Lost column/cell style upon sortalso firing when i sort OR fnUpdate a cell