Search/Filter on rendered text, rather than the field value in the database
Search/Filter on rendered text, rather than the field value in the database
kylescousin
Posts: 1Questions: 1Answers: 0
Hi,
If you have a field status(0 or 1) in your database table, you can use the render function to display that in the html table as 'active' or 'inactive'. But when you search in the datatable, it will search on the status value, rather than the custom text that is used. How can you tell datatables that you want to search on 'active' and 'inactive', rather than on 0 and 1?
This discussion has been closed.