Trying to select all rows with visible child nodes
Trying to select all rows with visible child nodes
I have a DT instance that uses the row().child()
functionality, and when the child node is visible, then a looped AJAX request is initiated, causing another XHR request every 4 seconds.
Since this can be a bit resource intensive, I wanted to enforce a limitation of only one visible child at a time. Is there any row-selector
that I can use to select the row with the visible child to close it?
I know I could just keep updating a variable every time a child node is shown, just close the last one and update the variable, but I figure that this would be a better way
Answers
This is my current solution, which is rather messy..
Bump? :-D Havent found a solution yet for this, might not be one
I think I found the most decent way...
http://live.datatables.net/pecuguza/1/edit
If its not, lmk