Searching Render

Searching Render

MadgeMadge Posts: 2Questions: 1Answers: 0
edited March 2020 in Free community support

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)

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    By default, it should search on the rendered data. If you want it to search on something else, use orthogonal data - example here.

    Colin

  • MadgeMadge Posts: 2Questions: 1Answers: 0

    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

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    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

This discussion has been closed.