Create checkboxes

Create checkboxes

SchmakusSchmakus Posts: 15Questions: 10Answers: 0

Hi,
I have a column with values "1" and "0". Now, I want to create checkboxes dynamically (checked/unchecked).
Could I use the column.render() for this?

Who can give me an example?

Thank you!

Replies

  • dhopedhope Posts: 1Questions: 0Answers: 0

    "mRender": function (data, type, full) {
    return '<input type="checkbox" ' + ((data == 1) ? 'checked' : '') + ' />'
    }

This discussion has been closed.