Hi All,
I have different layouts nested into each other, and when I switch tab, a grid from the previous tab should move along with it, back and forth.
I have following code, the grid moves, but to the wrong cell:
// all layouts existing, now enable juggling the grid
accountChildTabs.attachEvent(“onSelect”, function(id,last_id){
switch(id) {
case “subTabCon”:
//var idContainer = layoutAccountsContacts.cells(‘b’).getId();
//alert (layoutAccountsContacts.cells(‘b’).getId());
gridAccCon.attachToObject(layoutAccountsContacts.cells(‘b’));
//gridAccCon.attachToObject(document.getElementById(objId));
//gridAccCon.attachToObject(layoutAccountsContacts.cells(‘b’).getId);
break;
case “subTabInv”:
//alert(layoutInvoices.items[0].getId());
//alert(gridAccCon.getId());
//layoutConInvoices.cells(‘a’).id = ‘hoi’;
gridAccCon.attachToObject(layoutConInvoices.cells(‘a’));
//gridAccCon.attachToObject(‘hoi’);
//layoutInvoices.cells(‘a’).appendChild(gridAccCon);
break;
}
return true;
});