Search
11455 results 2041-2050
Forum
- 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.
- 20th Jul 2011Individual column filter not working in TabCan you link to your example please? Allan
- 5th Jul 2011Search Filter helpYou would need to bind a custom filtering event handler (and unbind the default one) to the input box - similar to what is done here: http://datatables.net/plug-ins/api#fnSetFilteringDelay . Then your function would need to set the sorting as required using fnSort(). Allan
- 19th Apr 2011Show divs using string filter on first td elementAny one have any ideas?
- 17th Feb 2011SELECT filter with html dataI got it working using only text in the cells of body rows then using an onclick event on the table cell to retain link functionality.
- 13th Feb 2011Filter: startsWith instead of contains?You can use fnFilter ( http://datatables.net/api#fnFilter ) to pass in a regular expression you want to match on, including 'starts with'. Allan
- 11th Oct 2010Creation of dynamic drop down filter per columnFor those finding this thread and having missed the example with select dropdowns as I did, here it is: http://www.datatables.net/examples/api/multi_filter_select.html (I had no part in that, just repasting the link to "answer" this thread)