Tabbar and Grid Footer

Hi, i need the value of a div in the footer. i have pro-version.

My code:
tabbar = new dhtmlXTabBar(“tab”,“top”);…
tabbar.addTab(“t1”,“dg”,“140px”);
tabbar.addTab(“t2”,“it”,“140px”);
tabbar.setHrefMode(“iframes-on-demand”);
tabbar.setTabActive(“t1”);
tabbar.setContentHref(“t1”, url);
gridIT = tabbar.cells(“t2”).attachGrid();…
gridIT.attachFooter(

0
, [“text-align:right;”]);

This works for tab “t1”: var f = tabbar.cells(“t1”).getFrame().contentWindow.document;
but this return null: document.getElementById(“subtotal”);

Thanks!!

Hi,

make sure that document.getElementById(“subtotal”); is called when grid is already initialized.

If you configure grid in xml, footer initialization should be called on loading event:

gridIT.loadXML(url,function(){
gridIT.attachFooter(“

0
”, [“text-align:right;”]);
alert(document.getElementById(“subtotal”))
})