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 kan
Posts: 65Questions: 31Answers: 0
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?
This discussion has been closed.
Answers
The
draw
event bubbles up through the document. You could check thee.target
(wheree
is the first parameter passed into the event listener) parameter to see which table it belongs to.Allan
is that possible 1 row with 2 child? so I can only refresh 1 child when resize
I'm afraid I don't really understand the question.
Can you link to a page showing the issue please?
Allan