Hi Sir,
I use tabbar function insert the grid, the data can load in the grid, but it can not change. It may the dataProcessor can not work. Could you help what problem is.
Thank you.
Best Regards,
Kenneth
var tabbar = dhxLayout.cells(“b”).attachTabbar();
tabbar.setImagePath(“dht/tabbar/codebase/imgs/”);
tabbar.setSkin(“dhx_skyblue”);
tabbar.addTab(“a1”,“Aug 21 - Sep 20”,“130px”);
tabbar.addTab(“a2”,“Sep 21 - Oct 20”,“130px”);
tabbar.setTabActive(“a1”);
array_num = ["a1","a2","a3","b1","b2","b3"]; //but as i see you haven't such tas like "b3"
for(var i = 0; i <= 5; i++){
//line here was deleted
if(array_num[i] == "a1"){
var dhxGrid = tabbar.cells(array_num[i]).attachGrid();
[b]dhxGrid.loadXML("lib/get_away_from_office.php");[/b]
}else if(array_num[i] == "a2"){
var dhxGrid = tabbar.cells(array_num[i]).attachGrid();
[b]dhxGrid.loadXML("lib/get_away_from_office1.php");[/b]
}
[b]var dp = new dataProcessor("away_from_office_connector.php");
dp.init(dhxGrid);[/b]