searchbuilder
searchbuilder
Rambaldi
Posts: 9Questions: 3Answers: 0
hi, why does SearchBuilder not work to search for a bool value if it is true or false? The combo for equals: is empty.
Answers
Can you post an example of the original source data supplied to Datatables so we can see how you are handling the boolean value? An example of the row data and your Datatables config.
Better is a link to a test case showing the issue so we can help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
hi, this is my data
columns: [
{ data: 'Saldata', visible: false,
searchable: false,
sortable: false,
className: 'text-center',
render: function ( data, type, row ) {
return data ? '<input type=""checkbox"" disabled checked/>' : '<input type=""checkbox"" disabled/>'
} },
]
No test case provided, so I don't have the full picture, however, I'm afraid that SearchBuilder does not work with live DOM input elements (e.g. a checkbox). You'd need a custom data type and set of conditions for that to work.
Allan
could you tell me where to find an example where the searchbuilder works with a boolean type? I couldn't find anything. Thank you