Search
14049 results 3151-3160
Forum
- 13th Jun 2013search value for other than datatable columnsyou can use fnServerParams see the reference documentation on http://datatables.net/ref [quote] It is often useful to send extra data to the server when making an Ajax request - for example custom filtering information, and this callback function makes it trivial to send extra information to the server. The passed in parameter is the data set that has been constructed by DataTables, and you can add to this or modify it as you require. [/quote] you can push the value of your checkbox onto the aoData array [code] $(document).ready( function() { $('#example').dataTable( { "bProcessing": true, "bServerSide": true, "sAjaxSource": "scripts/server_processing.php", "fnServerParams": function ( aoData ) { aoData.push( { "name": "status", "value": $('#my_secret_checkbox').val() } ); } } ); } ); [/code]
- 4th Jun 2013Hidden columns and search mismatchsorry for double posting, working link here http://s24.postimg.org/uyat0hw5x/image.jpg
- 27th May 2013add placeholder to search Input filedIts possible using Editor 1.2.3 and the attr option for the fields: http://editor.datatables.net/fields/#text . [code] editor.add( { "label": "Name:", "name": "name", "attr": { "placeholder": "Your name" } } ); [/code] The attr option is attractive because it allows any HTML attribute to be controlled on the input element. Regards, Allan
- 30th Apr 2013Add help message to the search boxHow about using the placeholder attribute: http://live.datatables.net/uhaxez/edit#javascript,html Allan
- 23rd Mar 2013load page, user enters search, then hits "search" button"aren't submitting the values DataTables needed for server-side processing" - no, they were getting passed in correctly. (i should have shown the searchTerms) anyway, got it finally. it was simply this: success: fnCallback, in the ajax call. fnServerData requires that unlike sAjaxSource (apparently!) :) many thanks allan...
- 4th Feb 2013Exclude Header TH in SearchAnything in the THEAD is excluded, anything in TBODY (including TH cells) is included. To exclude certain cells you'd need to use custom filtering. Allan
- 4th Feb 2013fnFilter search by different thanWell, finally i did it using regular expression thanks to another post i found on this forum. Here's my solution to look for something different than "No" for the column 7. [code]table.fnFilter('^((?!No).)*$', 7, true);[/code]
- 8th Dec 2012server side : multiple field search + select all rowMany thx for the answer first of all. I just see this example but i don't understand how to merge the two examples.
- 23rd Nov 2012Help on the implementation of the multi-column search custom button click event[code] $.fn.dataTableExt.afnFiltering.push( function( oSettings, aData, iDataIndex ) { var account= document.getElementById('account').value; var setdata= document.getElementById('setdata').value ; var colunm1= aData[0]; var colunm2= aData[1]; if ( account== "" && setdata== "" ) { return true; }else if ( colunm1== account && colunm2 == setdata) { return true; } else return false; } ); [/code] Seem to find a solution, and very grateful to the authors developed a convenient method
- 10th Oct 2012Make pagination and search shareable.Currently no - there isn't a built in way to do this, although you can easily do it using the initialisation options. You just need to parse the query string and pass the required parameters to DataTables ( iDisplayStart for example). This has come up a number of times recently, so I've made a note to write a tutorial about it in future, although if you do some up with your own solution, I'm sure others would be very grateful if you could share it! Allan