Select & FixedColumns Integration Not Working

Select & FixedColumns Integration Not Working

emadinaemadina Posts: 6Questions: 2Answers: 1

Hi Allan,
I got a problem while integrating select extension with fixedColumns, i think the same thing with this.

I got this same situation.

  1. when clicked oTable rows, it updates fixed column row but on wrong index. :(
  2. when i click fixed colum row, it doen't select child table row.

Do you get an update how to get rid with this issue ?

This is my code.

var table = $('#master_table').DataTable( {
        "scrollX": true,
        "columnDefs": [ {
            "searchable": false,"orderable": false,"targets": [-1, 0]
        } ],
        "order": [[ 1, 'asc' ]],
        select: {
          style:    'os',
          selector: 'td:not(:last-child)'
        },
        buttons: {
          buttons: [ 
            'selectAll',
            'selectNone',
            {extend:'excel',text:'<i class="fa fa-download"></i> Download',titleAttr:'Export to Excel'},
            {extend:'colvis',text:'<i class="fa fa-filter"></i> Filter'}
          ]
        }
    });
table.select();

var fc = new $.fn.dataTable.FixedColumns(table,{
  leftColumns: 2,
  rightColumns: 0
});

table.$('tr').click( function () {
  fc.fnUpdate();
});

And iam using this:
- FixedColumns 3.2.0
- Select for DataTables 1.2.2

Appreciate Any idea how to solve this.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,457Questions: 1Answers: 10,465 Site admin
    Answer ✓

    Can you link to a test case showing the issue please. It appears to work here.

    Allan

  • emadinaemadina Posts: 6Questions: 2Answers: 1

    Hi Allan, thanks for your response.
    While re writing my code to fiddle i check over of all of them, and finally resolve the problem by upgrading the fixedColumns javascript into version 3.2.4.
    Previously i was using 3.2.0.
    Once again, thanks.

This discussion has been closed.