Searching Render
Searching Render

I Have This Code
aoColumns": [
{
mData: "student.ID_PK", oData: "student/ID_PK", sType: 'numeric', 'bSearchable': false, orderable: false, render: getPlaceofBirth
}
]
How can I search in datatebles base on render value?
in my code my searching base on ID (but display the getPlaceofBirth value)
This discussion has been closed.
Answers
By default, it should search on the rendered data. If you want it to search on something else, use orthogonal data - example here.
Colin
when i use the code, and I search by placeofbirth value the result always empty.
But when i search by the id of student the value placeofbirth will be showed
We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin