locked
client side datatable RRS feed

  • Question

  • User1879907140 posted

    I'm getting a true/false from the table, how can I show a checkbox (checked/unchecked) in the row within the datatable?

    using .net core/mvc

    using this datatable: https://datatables.net/

    Friday, June 26, 2020 2:27 PM

Answers

  • User1879907140 posted

    I got it working:

    render: function ( data, type, row ) {
                                    if (type === 'display') {
                                        return '<input type="checkbox">';
                                    }
                                    return data;
                                }

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, June 26, 2020 2:56 PM