Search
13030 results 581-590
Forum
- 26th Jun 2014Order on in IE8set allow for column ordering. Unfortunately I cannot change
- 10th Jun 2014How to retrieve current order of columns after reorder?retrieve the current column ordering so that I can
- 30th Aug 2013.scroll is called when a column header is clicked to change sorted order.I do not believe this is intended behavior. When a column header is clicked it activates jqueries .scroll event when the selected element is div.dataTables_scrollBody. [code] var limbo_queue = $('#queue').dataTable( { "sDom": "ltSi", "bScrollInfinite": true, "sScrollY": "466px", "aoColumns": [ { "sType": "numeric-html" }, null, null, null, null, null, null, null, null ] } ); $('div.dataTables_scrollBody').scroll(function(){ alert("I'm called!") })[/code] I'm running this with datatabels.js 1.9.4 and bootstrap 2.3.2.
- 6th Jun 2013How to drag table row and drop it in particular orderi have two tables i want to drag row from one and drop it on another. The problem i have is: i want to sort each item in the right cell on the dropable table. Here a capture you can se that when i drag and drop a row, it stays as an one row on the other table. i want that each word/item to be dropped on the right cell. OBS. the dropable tables cells contains textboxex, and there i want to drop the items Here my Js code i have tested < script> $(function() { $( "#t1" ).accordion(); $( "#t1 tr" ).draggable({ appendTo: "body", helper: "clone" }); $( "#t2 td" ).droppable({ activeClass: "ui-state-default", hoverClass: "ui-state-hover", accept: ":not(.ui-sortable-helper)", drop: function( event, ui ) { $( this ).find( ".placeholder" ).remove(); $( "<td></td>" ).text( ui.draggable.text() ).appendTo( this ); } }).sortable({ items: "tr:not(.placeholder)", sort: function() { // gets added unintentionally by droppable interacting with sortable // using connectWithSortable fixes this, but doesn't allow you to customize active/hoverClass options $( this ).removeClass( "ui-state-default" ); } }); });
- 27th Dec 2012Row Order ProblemHello, I am filling a datatble with following code: $.each(responseFromServer, function() { $('#table').dataTable().fnAddData(getRow(this)); console.log('in loop'+this.subject+'\n'); }); i can see on console, in loop first in loop second in loop third but after that in datatable rows come as second first third What may cause this, i do not think i can provide a regeneration js fiddle.
- 3rd Jul 2012Override default order system with custom page reload methodHey Guys, I have been integrating datatables with our online application and while I'm overall impressed there are some methods that just won't work for us, one of which is the sorting of table columns, sadly our sort method is quite tricky and to re-write it would be a coders worst nightmare. At present on our tables you click the cell header and this then refreshes the page with the new sorted data, my question is how can I override the default method and instead get it to call the specific script? I have tried the AjaxSource method but this isn't working as expected and it will be hopefully be easier to re-write the sort rather than re-write the 2000 lines of data handling the table script does. we are creating the datatable at present with the following : [code] objDataTable = $jq('#table' + TABLETABDATA).dataTable( { "sScrollY": 520, "bJQueryUI": true, "bInfo": false, "bPaginate": false, "bScrollCollapse": true, "bProcessing": true, "bServerSide": true, "sAjaxSource": AJAXSOURCE, "sServerMethod": "POST", "fnServerParams": function ( aoData ) { if (extraparams.length > 0)aoData.push( extraparams ); }, "iDeferLoading": 57, "bSortClasses": false, "sDom" : '<"H"<"sitedrop">lfr>t<"F"<"excelexport"><"pagination">ip>', "oLanguage": { "sSearch": "Filter: " } } ); [/code]
- 17th May 2012sorting by default in the reverse orderI use the sorting date. I add the plugin from Ronan Guilloux found on this page http://www.datatables.net/plug-ins/sorting. Everything works, but by default are sorted by the first of the latter. And I do not know how to do the opposite: from the first days of the past. Help me please with this question.
- 23rd Dec 2025Control width of ColumnControl dropdown listtitle: 'PW Type', columnControl: ["order", [{ extend: "searchList", className: 'searchList-wide'
- 22nd Dec 2025columnControl not populated in ajax.data and stateSaveParamsparameter: $("#example").DataTable({ columns: [...], columnControl: [ "order", [ 'searchClear', { 'search' } ] ], serverSide: true,
- 18th Dec 2025classHi, How to hide the column order / sort icons only without affect the normal sort. Mary. george and all.