Search
23598 results 22331-22340
Forum
- 19th Feb 2019column.search() blank valuesThanks for the response allan. In this specific case I used two special characters... I used ! as the "not" with the column search to get empties/blanks. I also used * as a "match something" to get all not blank values. In both cases there is no need for users (in this case) to search for either of those characters by themselves. Not completely self evident, but this need had a small audience that could be trained to use that...and they were highly motivated because they needed to find empties!
- 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