Search
23543 results 22281-22290
Forum
- 30th Nov 2018columns.render() - referencing a different column in render functionFigured it out, the answer is: row.EndDate
- 12th Jan 2018column.search for numerical rangeThat was exactly what i needed. Thank you!
- 25th Aug 2017How can I make column().search() execute a function if no results found?Are you basically trying to find if a column contains some value? If so the filter() method along with count() might be the best way to do it: theTable .column(1) .data() .filter( function ( val ) { return val === searchTerm; } ) .count(); Allan
- 13th Jun 2017How do I display all rows after using column().search()I figured it out: if (tradeSelected === "Select All") { supplierTable.columns(3).search("").draw(); newSupplierTable.columns(3).search("").draw(); } else { supplierTable.columns(3).search(tradeSelected).draw(); newSupplierTable.columns(3).search(tradeSelected).draw(); } I thought I had already tried this, but I must have had a typo somewhere. Thanks, Pat
- 5th May 2017How do I add a class to a specific column when using the columns.every function?Is there anything specific that you think would be useful for me to add to the documentation to explain it a bit more? It is slightly more convoluted than I would like that case - there will be other ways to do it, but I think that's probably one of the most efficient. Allan
- 6th Mar 2017Bug report: columns.orderData only accepts array, but not integerFixed here. It was a falsy problem with the 0. Allan
- 7th Jun 2016Columns.render getting called multiple timesthanks Allan.
- 13th May 2015column.search() not passing value to serverThat worked, allan. Thanks! Here are the working relevant settings: var table = $("#dataTable").DataTable({ ... searching: true, dom: "ltip" // Remove global search box });
- 21st Feb 2015Function expression usage in columns.renderI solved the issue by replacing on server "datatableconvertdate" string with following function: function ( data, type, row, meta ) { return window['datatableconvertdate'].apply(null, arguments);} using above I was able to still create function expression with variable name "datatableconvertdate" rather then in my options object for datatables
- 18th Sep 2014Expected behavior of .column().search()Thanks for the feedback - great to hear! Super nice to hear that first thing in the morning :-) Regards, Allan