I have a tabbar with 4 tabs
I attached a dhtmlxgrid to the first tab and it works fine but did the same thing with second tab and it doesn’t show up at all.
Here is the code:
//> attach tab bar
dhxTabbar = dhxLayout.cells(“b”).attachTabbar();
dhxTabbar.setImagePath(“tabCodebase/imgs/”);
dhxTabbar.addTab(“a1”, “Overview”, “100px”);
dhxTabbar.addTab(“a2”, “Trends”, “100px”);
dhxTabbar.addTab(“a3”, “Reports”, “100px”);
dhxTabbar.addTab(“a4”, “Setup”, “100px”);
dhxTabbar.setTabActive(“a1”);
//> attach grid - overview
var mygrid_overview = dhxTabbar.cells("a1").attachGrid();
mygrid_overview.setImagePath("gridCodebase/imgs/");
mygrid_overview.loadXML("get_overview.php");
mygrid_overview.setHeader("Process, Register, Unit, Last Value");
mygrid_overview.setInitWidths("100%,100%,100%,100%");
mygrid_overview.setColAlign("left,left,left,left");
mygrid_overview.setColTypes("txt,txt,txt,txt");
mygrid_overview.setSkin("dhx_skyblue");
mygrid_overview.setColSorting("str,str,str,str");
mygrid_overview.attachEvent("onXLE", overviewShowLoading);
mygrid_overview.attachEvent("onXLS", overviewStopLoading);
mygrid_overview.init();
mygrid_overview.loadXML("get_overview.php");
myDataProcessor.init(mygrid_overview);
//> attach grid - trends
var mygrid_trends = dhxTabbar.cells(“a2”).attachGrid();
mygrid_trends.setImagePath(“gridCodebase/imgs/”);
// mygrid_trends.loadXML(“left_trends.php”);
mygrid_trends.setHeader(“Process, Register, Unit, Last Value”);
mygrid_trends.setInitWidths(“100%,100%,100%,100%”);
mygrid_trends.setColAlign(“left,left,left,left”);
mygrid_trends.setColTypes(“txt,txt,txt,txt”);
mygrid_trends.setSkin(“dhx_skyblue”);
mygrid_trends.setColSorting(“str,str,str,str”);
//mygrid_trends.attachEvent(“onXLE”, overviewShowLoading);
//mygrid_trends.attachEvent(“onXLS”, overviewStopLoading);
mygrid_trends.init();
mygrid_trends.loadXML(“left_trends.php”);
myDataProcessor2.init(mygrid_trends);