var serviceTreeGrid = dataTab.cells(“d2”).attachGrid();
serviceTreeGrid.selMultiRows = true;
serviceTreeGrid.setImagePath(dhtmlXGridImagePath);
serviceTreeGrid.setHeader(“Услуга,Информация”);
serviceTreeGrid.setInitWidths(“180,*”);
serviceTreeGrid.setColAlign(“left,right”);
serviceTreeGrid.setColTypes(“tree,ro”);
serviceTreeGrid.setColSorting(“str,str”);
serviceTreeGrid.enableTreeCellEdit(false);
serviceTreeGrid.init();
serviceTreeGrid.setSkin(“dhx_skyblue”);
serviceTreeGrid.addRow(“grajdanska”,[“Гражданска”,“2012-09-10”], null, null, “…/…/…/images/protect_yellow.png”, false);
serviceTreeGrid.addRow(“autokasko”,[“Автокаско”,“2012-09-10”], null, null, “…/…/…/images/shield_red.png”, false);
serviceTreeGrid.addRow(“vinetka”,[“Винетка”,“2012-09-10”], null, null, “…/…/…/images/credit_card.png”, false);
serviceTreeGrid.addRow(“gtp”,[“Г.Т.П.”,“2012-09-10”], null, null, “…/…/…/images/preferences_composer.png”, false);
serviceTreeGrid.addRow(“tahometer”,[“Тахограф”,“2012-09-10”], null, null, “…/…/…/images/filefind.png”, false);
serviceTreeGrid.addRow(“oilChange”,[“Масло”,“250 km.”], null, null, “…/…/…/images/system_software_update.png”, false);
serviceTreeGrid.addRow(“tireChange”,[“Гуми”,""], null, null, “…/…/…/images/tire.png”, false);
serviceTreeGrid.addRow(“tireType1”,[“М-2: лява външна гума”,“14 000 km”], null, “tireChange”, “…/…/…/images/tire.png”, false);
serviceTreeGrid.expandAll();
serviceTreeGrid.cells(“oilChange”, 1).setValue(“Some value”);