Drill down with FixedColumns?

Drill down with FixedColumns?

jhaitasjhaitas Posts: 32Questions: 0Answers: 0
edited June 2012 in Plug-ins
Has anyone managed to get drill down rows ( http://datatables.net/blog/Drill-down_rows ) working w FixedColumns?

Replies

  • allanallan Posts: 63,680Questions: 1Answers: 10,498 Site admin
    What you need to do is call the FixedColumn instance's fnUpdate API method when you 'open' a row, so it can reflect the updated DOM in the table. I think getting the animation for the slide open would be virtually impossible (it could be done, but I don't think it could be correctly synchronised and thus would look a bit 'odd').

    Allan
  • jhaitasjhaitas Posts: 32Questions: 0Answers: 0
    Hi Allan,

    That didn't work for me - here is how I did it:

    var nDetailsRow = oSettings.oInstance.fnOpen(nTr, function () {
    oSettings.oFixedColumns.fnUpdate();
    fnFormatDetails(oSettings.oInstance, nTr)
    }, 'details');
    $('div.innerDetails', nDetailsRow).slideDown();
  • jhaitasjhaitas Posts: 32Questions: 0Answers: 0
    does anyone have a working example of drill downs with FixedColumns?
  • allanallan Posts: 63,680Questions: 1Answers: 10,498 Site admin
    You would need to make the fnUpdate call after the slideDown has completed - i.e. when the row is in the state that is ready to be cloned. As I say, I think the animation would need to be removed - getting the fixed column and the main table to animate at the same time would, I think be exceptionally hard.

    Allan
  • jhaitasjhaitas Posts: 32Questions: 0Answers: 0
    Thanks Allan,

    Had already tried it like that. When I do that the FixedColumns data area disappears - just blank space.

    I thought I had been doing something wrong - I probably still am.

    I appreciate your help.
This discussion has been closed.