PDA

View Full Version : Row Expander plugin Extjs Grid



charan@dev.com
15 Jun 2012, 4:31 AM
I am trying to display EXT JS with Row Expander plugin in a Visual Force page.Check this link http://mikhailstadnik.com/ext/examples/nested-grid.htmAs per the link, I am successful in displaying Accounts in first grid and respective Contacts in child grid.Problem is: When I click on first row, it is expanded and shows the respective contacts. When I click on second row and first row is not closed, the data which I can see for second row (Contacts) are visible at first row contacts also.So, I think when second row is clicked, I need to close the first row.Please suggest me how to do this..

scottmartin
15 Jun 2012, 8:39 AM
I do not see any options for making the selections mutually exclusive. You could have to collapse all the expanded rows and then open the selected



// collapse all
for(i = 0; i <= grid.getStore().getCount(); i++) {
expander.expandRow(i);
}


Scott.