Notice: Undefined offset: 0 in /home/withart1000/html/net_tobesimple/page_header.php on line 24

Notice: Trying to access array offset on value of type null in /home/withart1000/html/net_tobesimple/page_header.php on line 29

Notice: Trying to access array offset on value of type null in /home/withart1000/html/net_tobesimple/page_header.php on line 30

Notice: Trying to access array offset on value of type null in /home/withart1000/html/net_tobesimple/page_header.php on line 31

Notice: Trying to access array offset on value of type null in /home/withart1000/html/net_tobesimple/page_header.php on line 32

Notice: Trying to access array offset on value of type null in /home/withart1000/html/net_tobesimple/page_header.php on line 33

Notice: Trying to access array offset on value of type null in /home/withart1000/html/net_tobesimple/page_header.php on line 34

Notice: Trying to access array offset on value of type null in /home/withart1000/html/net_tobesimple/page_header.php on line 35

Notice: Trying to access array offset on value of type null in /home/withart1000/html/net_tobesimple/page_header.php on line 36
TbsGrid :: Html Data Grid

Make tree grid


grid1.setOption('treeItemName'   , 'num'      );     // key
grid1.setOption('treeParentName' , 'parentNum');     // parent key
grid1.setOption('treeRootValue'  , 0);               // start level value

grid1.hideToolbarButtons('group');
grid1.hideToolbarButtons('fixedColumn');

grid1.setGridMode('tree');
grid1.setData(jsonData);
 

tree depth

  • grid.setData(jsonData, 1); //Display 1 depth
  • grid.setData(jsonData, 2); //Display 2 depth
  • grid.setData(jsonData); //Display all depth
  • tree node depth : starting from 1.

grid.setData(jsonData, 1);
grid.setData(jsonData, 2);
grid.setData(jsonData)