Search
11331 results 2011-2020
Forum
- 1st Jun 2012"All" filter option does not workThe problem now is solved. It's my fault. The right way of calling this action is: "aLengthMenu": [[25, 50, 100, -1], [25, 50, 100, "All"]]
- 30th May 2012Ensuring that global search filter code is hit during coverageEdits made in initial post !
- 28th Mar 2012Pagination problems when using column filter and iDisplayLengthAllan/Kussie, yes, that was exactly it. I removed the quotes and everything flew perfectly. p.s. It also removed the need for my next call which was going to be "Why does the info show as 'records 1 to 020 of 1,922'"? (i.e. have a leading zero!) Thanks again to you both, Pete.
- 27th Mar 2012[SOLVED] Search (Filter) not workingIt doesn't work for me. For some reason, if there are many columns of different types, the search goes on "Processing..." without explaining why is failing
- 26th Mar 2012Using multi column filter with Ajaxsourcep.s. All was o.k., but I wanted to have the dropdown list sorted. Fortunately, this was a simple thing todo (once I'd found this post: http://datatables.net/forums/discussion/comment/17116#Comment_17116)
- 21st Oct 2011Losing sDom buttons and filter after AJAX refreshIs it possible this php code is causing the error about columns. It's used when our table is created and also in the ajax refresh code. Depending on a condition we are setting a div class. But the programmer wrapped the entire td element instead of just running the if else around the div class inside the td. [code] [/code]
- 21st Oct 2011Wait to Filter - AJAX DataShould look harder next time (searched the API and stuff but didn't see anything before I posted.)... Found the answer http://datatables.net/plug-ins/api#fnSetFilteringDelay
- 6th Sep 2011Queries of datatable filter~Lots of people here :-) I don't quite understand - a link to illustrate would be very useful. Are your server error logs showing any 404 errors? If it isn't automatically being picked up as numeric then it likely has non-numeric characters in it (such as , or ' etc). Again a link would be useful. Allan
- 29th Jul 2011Filter Expands My Table Cells HeightHere is where I initialize the datatables plugin: [code] jQuery.fn.dataTableExt.oSort['num-html-asc'] = function(a,b) { var x = a.replace( //g, "" ); var y = b.replace( //g, "" ); x = parseFloat( x ); y = parseFloat( y ); return ((x < y) ? -1 : ((x > y) ? 1 : 0)); }; jQuery.fn.dataTableExt.oSort['num-html-desc'] = function(a,b) { var x = a.replace( //g, "" ); var y = b.replace( //g, "" ); x = parseFloat( x ); y = parseFloat( y ); return ((x < y) ? 1 : ((x > y) ? -1 : 0)); }; $(document).ready(function() { $('#myTable').dataTable( { "sScrollY": "465px", "bScrollCollapse": true, "bJQueryUI": false, "bAutoWidth": false, "bPaginate": false, "aoColumns": [ null, { "sType": 'num-html' }, null, null, null, null, null ], } ); } ); [/code] Here is the part where I coded my table where it populates with items. [code] < table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"> < table id="myTable" width="100%" height="100%" border="0" cellspacing="0" cellpadding="2" align="left" style="position:relative; bottom:-3px; left:0px;"> <tr> <%[/code]
- 25th Jul 2011Update header cell item, representing column sum, when a filter finishes runningOk I resolved it myself. I removed the parameter colIndex and just hard coded the column index directly and then I switched to a different callback, fnDrawCallback. I also changed my td in the last line to th, since I'm dealing with headers and not plain cells.