Searching a rendered column
Searching a rendered column
baseball43v3r
Posts: 11Questions: 3Answers: 0
I have a rendered column which is a concatenation of 3 previous columns, and I would like to be able to search that rendered column. the rendered result is in this format 00.000.00 but when I try and search using that format i get 0 results. How can I do this? For reference, this is my render code, and I have the 3 columns in the table but hidden to help with sorting.
data: null,
render: function(data, type, row) {
return row.Product_Category + "." + row.Product_Number1 + "." + row.Product_Number2;
}
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
How are you searching? The built in search should work as expected. If it isn't, we'd need a test case.
Allan
I'm just using the built in search, it'll search the first two numbers but as soon as i type a period I get zero results. What can i provide that would be a meaningful test case?
here is my javascript
and here is an example of my json
and here is my table
Filtering is being done at the server-side if you have server-side processing enabled. Any issue with the filtering, therefore, is in the
../dist/scripts/getProducts.php
script, whatever that is.Do you have tens of thousands of rows? You should only need server-side processing if that is the case.
Allan
Ah that explains a lot. removing that row makes it work as expected. Thank you for the explanation.