Datatables - Whole row child row control - Doesn't work

Datatables - Whole row child row control - Doesn't work

ExploxExplox Posts: 4Questions: 1Answers: 0
edited July 2016 in Free community support

Hi,

Since a couple of days, I'm trying to implement the "Whole row child row control" feature available at the :
https://datatables.net/extensions/responsive/examples/child-rows/whole-row-control.html
but I can't make it work. I trying like 50 times with differents ways but never worked. Do you have a template or anything that could help me please ?

-https://github.com/DataTables/DataTables/issues/848

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,863Questions: 1Answers: 10,136 Site admin

    The example you link to shows how it can be done. If that isn't working for you, we would need a link to a page showing the error you are facing so we can offer some help (per the forum rules, and as I requested in the github issue).

    Allan

  • ExploxExplox Posts: 4Questions: 1Answers: 0

    I tried with this link : http://jsfiddle.net/D9Z9M/
    It "seems" to work but, if I try on my own, with a html file : http://pastebin.com/nAi97K18
    never worked.

    I tried multiple ways to do it but it doesn't want to work. No errors in the js console.

    Result : http://imgur.com/a/FkEPx

    Thanks

  • allanallan Posts: 61,863Questions: 1Answers: 10,136 Site admin
    edited July 2016

    Sorry - we need a link to a page showing the issue so it can be debugged. Apologies if I wasn't clear on that enough when I said it before. (edit typo)

    Allan

  • ExploxExplox Posts: 4Questions: 1Answers: 0

    Like I said, I have no errors and the code was in the pastebin link, but anyway.

    http://explox.comli.com/datatable.html

    I uploaded the content to a website where you can see the issue.

    Hope that's what you wanted.

    Thanks

  • allanallan Posts: 61,863Questions: 1Answers: 10,136 Site admin
    Answer ✓

    Thanks for the link.

    However, I'm not seeing the problem I'm afraid. If the window is small enough that Responsive hides columns, then if I click anywhere in the row the child row details with the hidden column information is shown.

    Is that not working for you? What browser are you using?

    Allan

  • ExploxExplox Posts: 4Questions: 1Answers: 0

    I tried like you said by reducing the window size and it seems to work, but is there a solution about the fact that I need to reduce the size of the table to make it work ?
    Can I force the table to display the last column in the child row even with a big window (or div) ?

  • allanallan Posts: 61,863Questions: 1Answers: 10,136 Site admin

    Can I force the table to display the last column in the child row even with a big window (or div) ?

    Sure - see the documentation here.

    Allan

This discussion has been closed.