Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ram Chander Singh on Mar 02, 2009 02:08
open dhtmlx forum
dhtmlxTabbar - Attach Grid

Hello,

how can i assign a grid inside a tab, i can't create a DIV for grid i have to use "attacheGrid()". Below is my code:



var workspaceLayout = new dhtmlXLayoutObject(document.body, "2E");
var masterCell = workspaceLayout.cells("a")
var detailCell = workspaceLayout.cells("b")

masterCell.hideHeader();
masterCell.setHeight(110);
detailCell.hideHeader();

var dhxTabbar =workspaceLayout.cells("b").attachTabbar();
dhxTabbar.setImagePath("/javascripts/dhtmlx/dhtmlxTabbar/codebase/imgs/");
dhxTabbar.setHrefMode("iframes");
var test = dhxTabbar.addTab("a1","History","100px");
dhxTabbar.addTab("a2","Preview","100px");
dhxTabbar.addTab("a3","Messages","100px");
dhxTabbar.setContent("a1","test");

dhxTabbar.setTabActive("a1");
Answer posted by Support on Mar 02, 2009 06:31
can be done as
dhxTabbar.addTab("a3","Messages","100px");
var grid = dhxTabbar.cells("a3").attachGrid();

Please be sure to include dhtmlxtabbar_wins.js


Answer posted on Mar 03, 2009 02:29
It's helped me lot..!!

Thanks for your support.


Regards,
Ram