if condition in render

if condition in render

m26gorjim26gorji Posts: 4Questions: 2Answers: 0

Hi
I have a problem finding a filter. I rename the data but when I search for it I do not find it.

{ "dt": "degree", render:{ "filter": function (data, type, row, meta) {
if(data == 'Diploma'){
return data;
}
return 'Other';
} } },

It changes in my table But it doesn't work in search filter.

Answers

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    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

Sign In or Register to comment.