searchbuilder

searchbuilder

RambaldiRambaldi 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

  • kthorngrenkthorngren Posts: 21,327Questions: 26Answers: 4,949
    edited July 16

    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

  • RambaldiRambaldi Posts: 9Questions: 3Answers: 0

    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/>'
    } },

    ]

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin

    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

  • RambaldiRambaldi Posts: 9Questions: 3Answers: 0

    could you tell me where to find an example where the searchbuilder works with a boolean type? I couldn't find anything. Thank you

Sign In or Register to comment.