initialize sub datatable trigger main datatable draw.dtr event in responsive plugin

initialize sub datatable trigger main datatable draw.dtr event in responsive plugin

yu yen kanyu yen kan Posts: 65Questions: 31Answers: 0
edited April 2017 in Free community support

as title, when I trying to initialize sub datatable in child row of main datatable, the draw.dtr event in responsive plugin will be triggered to replace the output

dt.on('draw.dtr', function () {
                    that._redrawChildren();
                });

why it happen?

Answers

  • allanallan Posts: 61,663Questions: 1Answers: 10,094 Site admin

    The draw event bubbles up through the document. You could check the e.target (where e is the first parameter passed into the event listener) parameter to see which table it belongs to.

    Allan

  • yu yen kanyu yen kan Posts: 65Questions: 31Answers: 0
    edited April 2017

    is that possible 1 row with 2 child? so I can only refresh 1 child when resize

  • allanallan Posts: 61,663Questions: 1Answers: 10,094 Site admin

    I'm afraid I don't really understand the question.

    Can you link to a page showing the issue please?

    Allan

This discussion has been closed.