Table Row Selection

Table Row Selection

DataTables2021DataTables2021 Posts: 2Questions: 1Answers: 0

I have customized the table column to contain checkbox that is checked when the table row is selected
however when the child row is opened then the check mark cannot be checked for any rows until the drill down is closed.

Answers

  • DataTables2021DataTables2021 Posts: 2Questions: 1Answers: 0
     $('#datatables tbody').on('click', 'td:not(.noSelect)', function() {
            var table = $('#datatables').DataTable();
            // When drill down row is open it holds this function execution
            var index = table.row(this).index();
            table.rows({ selected: true }).every(function(index) {
                    var row = table.row(index);
                    var node = row.node()
                        // .querySelector('#checkValue').checked = true;
                    console.log(node);
                })
                // console.log(table.rows());
        });
    
  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.