Search
11430 results 1781-1790
Forum
- 30th Jun 2023Search and filter rows based on click of an element in the DataTablesHere is a simple example: https://live.datatables.net/tefugala/1/edit It uses columns.className to assign a classname that is used as part of the event handler selector. Kevin
- 1st Jun 2023How to add filter functions with ES6 ?Ahhh I tried with the new instance but not the "module" himself. Thanks.
- 4th May 2023Datatable Sharepoint list filter data by clicking on icons/badgesYour test case has some errors and doesn't run. Create a click event handler for the buttons and in the event handler use column().search() to search for the appropriate data. I built a simple example to show one way of doing this: https://live.datatables.net/petepehu/1/edit Kevin
- 10th Mar 2023Add another select filterCan you link to a page showing the issue, per the forum rules please? Allan
- 10th Mar 2023Select2 filter and ScrollYThe example in that thread actually appears to work for me: I'm not seeing any duplicate headers there? Allan
- 5th Mar 2023How to get number of days in DataTables date range filter between Minimum Date and Maximum Date ?That is not a data tables related question, right. You'll find very many related threads on Stack Overflow. Depending on what date plug in you use (e.g. moment.js) you will prefer a different solution. Here is an example using moment.js: https://codepen.io/SitePoint/pen/eYmMjxG
- 3rd Mar 2023Datatables does not retain the selected filter column values if the value has special characters.I got my answer on stack exchange. Thanks. https://stackoverflow.com/questions/75631827/datatables-does-not-retain-the-selected-filter-column-values-if-the-value-has-sp
- 20th Feb 2023I cannot remove unnesessary filter conditionsResolved with columns.searchBuilderType: 'string' parameter
- 15th Jan 2023Display search panes filter items horizontally.You could do something like this, here's the panes are stacked vertically alongside the table. Colin
- 11th Jan 2023Make a filter condition with a custom buttonI think you will want to move the keyup event handler outside the change event handler. Otherwise you will end up creating additional event handlers each time the code in line 7 is reached. Something like this: // Refilter the table $('#min, #max').on('change', function () { table.draw(); }); // Reload the dataTable on a delete event $('#min, #max').keyup(function(e){ if(e.keyCode == 46 || e.keyCode == 8) { table.draw(); } }); Kevin