Click on single row details is closing all open rows' details

Click on single row details is closing all open rows' details

ShownShown Posts: 4Questions: 0Answers: 0
edited May 2011 in General
I'm using this code to collapse/expand row with the content taken from an external array (named 'details_arr').
1) When I click on it works correctly.
2) If i click on when expanded it does nothing (this may be not considered a problem, but it should be better if both and click collapse the row details.)
3) When I click on containing details, it closes ALL other open s, when it should close only itself.
Thanks in advance for great support
[code]$('#table_navigation tbody tr').live('click', function () {
var that = this;
otable_navigation.fnOpen( this, details_arr[otable_navigation.fnGetData( that )[0]], 'row_details' );
$('#table_navigation .row_details').live('click', function () { otable_navigation.fnClose(that); } );
} );[/code]

Replies

  • ShownShown Posts: 4Questions: 0Answers: 0
    Solved by using a global array where to store collapsed status of each , which can be recognized from value of first of the table.
This discussion has been closed.