How to access FixedColumns plugin from datatables

How to access FixedColumns plugin from datatables

xplicitxplicit Posts: 4Questions: 3Answers: 0
edited July 2015 in Free community support

I have datatables with FixedColumns plugin in it. I want to access FixedColumns API functions, but could not find how can I get it when I have only reference to datatable.

I tried to do

function redraw()
{
    var fc=new $.fn.dataTable.FixedColumns( table );
    fc.fnRedrawLayout();
}

but I'm not sure it's a right way, I think this initializes fixed columns every time, but I have already initialized FixedColumns when defined datatables.

Answers

  • xplicitxplicit Posts: 4Questions: 3Answers: 0

    I would like to use something like:

    table.FixedColumns.fnRedrawLayout();
    

    is it possible? Or I must define my own variable, which will hold reference to FixedColumns?

This discussion has been closed.