Checkbox is shown as blank in the searchBuilder pulldown list
Checkbox is shown as blank in the searchBuilder pulldown list
Hi,
When I use seachBuilder with a column that is a checkbox, the pulldown list for selecting a value to search is blank for both true and false.
So, although both the true and false options are there, both display in the list as blank, so if I click one of the blank options within this list it does do the search correctly, it is just that it does not render either 'true' or 'false' visually within the list.
I hope that makes sense?!
This is how I declare my checkbox row:
{ data: 'todolist.inprogress', className: "inlineEdit", render: function (data, type, row) { if (type === 'display') { return data == 1 ? '<input type="checkbox" class="editor-active-todolist-inprogress" checked>' : '<input type="checkbox" class="editor-active-todolist-inprogress">'; } return data; }, className: "dt-body-center" },
Could someone help, please?
I can give access to my web app if required, just pm me?
Regards, Chris
This question has an accepted answers - jump to answer
Answers
This example from this thread should help - it's doing just that. Could you look at that, please, and see if it helps. If it's still not working for you, please can you update my example, or link to your page, so that we can see the problem.
Cheers,
Colin
Great!! Thank you )