Search
14187 results 3161-3170
Forum
- 4th Feb 2014Extend Search FunctionBasically you can't - its a private function. What I would suggest is you create a custom feature plug-in which just calls fnFilter (which is basically all _fnFilterCreateSearch does after it has made the input box). See: http://datatables.net/blog/Creating_feature_plug-ins Allan
- 7th Jan 2014Is there a way to "remember" the search values of column range filters? (similar to aoPreSearchCols)Thanks Allan! Looks good, and it looks like what I was looking for.
- 12th Dec 2013How can I put the search label inside the input?Oh wow :) That was simple. Thank you so much!
- 9th Dec 2013GROUP BY breaks Search functionI was able to figure it out using $sGroup = "GROUP BY accounts.accountname"; Added $sGroup after $sWhere Thank you
- 9th Dec 2013Search Function stops when using GROUP BY in server processingI was able to figure it out using $sGroup = "GROUP BY accounts.accountname"; Added $sGroup after $sWhere Thank you
- 22nd Nov 2013How I hide searchAgreed - sDom is how to control what controls DataTables adds to the document. Allan
- 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