tab with grid count

Hi, I have a tab bar that has two tabs with a different grid inside each.



I would like the label of the tab to be followed by the grid count.



tabbar.addtab(“a1”,“mytab1”,“120px”);

would be something like

tabbar.addtab(“a1”,“mytab1 (”+mygrid1.getRowsNum()+")",“120px”);



However, that doesn’t work.



Do you have a suggestion for this?



Thanks


Hello,


it will be better to do that as follows:


tabbar.addtab(“a1”,“mytab1”,“120px”);





mygrid1.loadXML(url,function(){


document.getElementById(“tab1”).innerHTML += mygrid1.getRowsNum()


})