Checkbox with boolean values (true/false)

Checkbox with boolean values (true/false)

beerygazbeerygaz Posts: 16Questions: 9Answers: 0

My SQL table contains a bit column for a boolean value. It renders as "True/False" in the datatable, but I'd like to represent this value as a single checkbox in the editor. Is this workaround by a user still the recommended solution:
https://datatables.net/forums/discussion/comment/76098/#Comment_76098

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,946Questions: 1Answers: 10,158 Site admin
    Answer ✓

    The checkbox field type in Editor has a unselectedValue value option (as of 1.6.0).

    Regards,
    Allan

  • beerygazbeerygaz Posts: 16Questions: 9Answers: 0

    That did it for me once I enclosed my true/false values in quotes.

    Thanks.

This discussion has been closed.