Hide Row when is showing its details...

Hide Row when is showing its details...

misterbeanmisterbean Posts: 4Questions: 0Answers: 0
edited October 2012 in DataTables 1.9
Hi Allan, thanks for this work.
Im using your table, specially the feature of show details of a row. When I show the details, I'd like to hide the "parent" row because the details contains also the information of the row, but with other format o "style".
How can I hide temporally the row or use any css trick?
Thanks in advanced,
MrBean.

Replies

  • misterbeanmisterbean Posts: 4Questions: 0Answers: 0
    Well, I think with a little dirty trick I got what I wanted. I'm sure allan has a better way.

    1. I created a class display_none with the only attribute display:none;

    2. When I show the details I keep the row is in a variable $myRow and add to this row the class display_none and hide the row.

    $myRow.addClass('display_none');

    3. When I close the details, remove the class display_none from $myRow and everything return to the inital state...

    $myRow.removeClass('display_none');
This discussion has been closed.