fnOpen() and FixedColumns

fnOpen() and FixedColumns

greenflashgreenflash Posts: 58Questions: 5Answers: 0
edited September 2011 in General
Is fnOpen() supposed to work with FixedColumns? I'm trying to create a table with a fixed left hand column where clicking on the left hand cell will expand a row to give more details. It works OK if I don't use FixedColumns, but doesn't if I do. Test case here http://www.farmarsh.co.uk/datatables/test1.php

If I comment out options.sScrollX = '100%'; - in other words forcing FixedColumns to be ignored - it works.

Campbell

Replies

  • allanallan Posts: 63,531Questions: 1Answers: 10,475 Site admin
    I don't think it is something I've ever tried actually, so quite possibly it won't work. If you call fnUpdate on the FixedColumns instance ( http://datatables.net/docs/FixedColumns/2.0.1/#fnUpdate_details ) just after you've done the fnOpen, does that work (fnDraw on the table would work as well).

    Allan
  • greenflashgreenflash Posts: 58Questions: 5Answers: 0
    No, neither of those work I'm afraid. I've added them to the test case. I have a feeling there's something a little bit weird going on, because when I was trying to get it going in my live environment I ended up commenting out options until I found the one that was causing the problem. But there wasn't just one causing the problem and I found I had to turn off bStateSave as well as sScrollX.

    Campbell
This discussion has been closed.