Search
23543 results 22271-22280
Forum
- 28th Feb 2023Use the for statement in the columns.render functionreturn data.map(v => v.UPLOAD_DT).join(' '); Which is the same as: var out = []; for (var i=0 ; i<data.length ; i++) { out.push(data[i].UPLOAD_DT); } return out.join(' '); Allan
- 21st Dec 2022How to use column().search() for non-empty records?For complex searches with multiple options, it would be worth looking at SearchPanes or SearchBuilder . Both of those are designed to cater for that. Without those, you would need to apply a regex to the search - please see example here, Colin
- 25th Sep 2020DT column.search() multiple values -- and conditionThanks Colin. It appears the code I provided above was working. Thanks for responding.
- 22nd Jun 2020column.search() is not binding to DataTableRequest, column[i].search.value is nullI'm not clear what you mean by "search values are not binding". Are you saying the search itself doesn't work, or that the values don't appear in the column heading? If the latter, then yep, that would be the case, as you have serverSide, you initComplete wouldn't have any knowledge of values not on the current page. Colin
- 9th Feb 2020When using columns.render I get "Requested unknown parameter"That certainly did it! Thanks Kevin!
- 4th Nov 2019Search result after column().search()See draw, does that fit the bill?
- 18th Sep 2019How to use sum.js to sum column values after column().search is applied.See if the selector-modifer of the column() API helps. Probably something like this: const counts = summaryTable.column(4, {search:'applied'}).data().sum(); Kevin
- 26th Aug 2019column.search() no matching records foundWorks here with null data. Please provide a test case so we can help. http://live.datatables.net/giwireku/1/edit Kevin
- 11th Apr 2019columns.render function: How to conditionally add class to td?That's great! Thank you very much.
- 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!