Search
11455 results 1981-1990
Forum
- 12th Jun 2015How do I create a filter to only show rows containing a checkboxFixed it! The data-search attribute needs to be on the not the tag, and needs to be on EVERY row: <!-- Valid Row --> <td class="enter" data-search="valid"> <input id="Enter_30241_3340138" type="checkbox" value="true" name="Enter_30241_3340138"></input> </td> <!-- Invalid Row --> <td class="enter" data-search=""> <input id="Enter_30241_3340138" type="checkbox" value="true" name="Enter_30241_3340138"></input> </td>
- 26th May 2015Search in rows already hidden by filterThe part that slows down the every function is that it creates a new API instance for each call - with the data and context appropriately set for the row in question. Indexes would be faster (looping over rows().indexes(), but you would still need to use the API to modify the data. It is possible that will be faster since there is less context switching. If you try it, I would be interested to know the result! Allan
- 29th Apr 2015A tweak to the date range filter using moment.jsVery nice - thanks for sharing with us! Allan
- 24th Mar 2015search (filter) with a double quote in the stringThanks Allan. I did try changing the search settings, but I found it less useful than the default. If it becomes a real issue, I will replace the " with in. or something like that ;-|
- 4th Mar 2015Mobile Browser Bugs: Multi Filter, Range Filters and Regex ExamplesIcic, @allan I cannot edit the question post so I will add on here that the default HTC One browser and dolphin browser are not working but the chrome browser works so maybe when you have an android, you can test it out. PS: I don't know if it happens to the other android users (on this browser issues), so anybody who tested it, feel free to update here. Thanks!
- 1st Mar 2015Don't Save the Search When bStateSave Is True And Has Filter Per ColumnIn that case you can use the exResetAllFilters function, you can call it right after your dataTable initialization. It will reset all yadcf filters...
- 23rd Jan 2015JQuery Datatables: filter the search with or without acentDid you see this: https://datatables.net/plug-ins/filtering/type-based/accent-neutralise ?
- 22nd Jan 2015filter select based on selected value from another fieldAha, gotcha . Appreciate your patience. So many features, so much to learn Thanks again
- 19th Jan 2015how can i apply smartsearch filter on when checkbox is checked otherwise not?i have done..!!! <table class="col-sm-12"> <tbody> <tr id="filter_global" class="col-sm-12"> <td class="col-sm-6"> <b> Use Smart Search :</b> <input type="checkbox" class="global_filter" id="global_smart"> </td> <td align="center" class="col-sm-6"> <b> Search :</b> <input type="text" class="global_filter" id="global_filter"> </td> </tr> </tbody> </table> function filterGlobal () { $('#activeNodeList').DataTable().search( $('#global_filter').val(), $('#global_regex').prop('checked'), $('#global_smart').prop('checked') ).draw(); } $('#activeNodeList').dataTable( { "dom": '<"col-sm-12"<"col-sm-6"l>><"col-sm-12"t><"col-sm-12"i><"col-sm-12 text-center"p>', "search": {"smart": false}, "columnDefs": [ { orderable: false, targets: [ -1 ] } ] } ); $('input.global_filter').on( 'keyup click', function () { filterGlobal(); } );
- 9th Jan 2015way to programatically populate the filter box and then refresh?incidentally, the page you linked has an example on it that is missing the .api() command from it. In the example? No - it doesn't need .api() since it uses $().DataTable();. If $().dataTable() were used, then yes it would need api() - see the FAQs. Allan