The Selected Rows cleared out automatically when i clear the Search field

The Selected Rows cleared out automatically when i clear the Search field

@DasDeva@DasDeva Posts: 6Questions: 2Answers: 0

The Search is working fine in the attached Image of Data table. But If I do a Search and select the checkbox and If I clear the Search then the Checkbox which i selected also cleared out.

Below is my code.

"bLengthChange": false,

    "autoWidth": false,
     "order": [[ 0, "asc" ]],  // , [1, "asc"]
     "aoColumnDefs": [
      { 'bSortable': false, 'aTargets': [1,2,3,6] }],

     "bPaginate": false,

      "drawCallback": function ( settings ) {
        var api = this.api();
        var rows = api.rows( {page:'current'} ).nodes();
        var last=null;

...... have some code after that for grouping.....

Any help is appreciated ...

Answers

This discussion has been closed.