Hi,
I have a html page, where i have added a DHTMLX layout with “2U” format. on the left in cells “a” of the layout I am attaching a DHTMLX tree with cjeckboxes (using the layout.cells{“a”).attactTabbar() method). The right cell “b” of the layout is attached to an aspx page.
my requirement is that when a user checks a particular checkbox in the tree, the textboxes in the aspx page on the right should get enabled and vice versa.
kindly let me know how i should proceed with this
Thanks in anticipiation,
meenakshi
Hello,
tree has “onCheck” event. You can set its handler and call the necessary method:
tree.attachEvent(“onCheck”,function(id,state){
/your code here/
})
In order to access the element inside tab iframe. You can use the tabWindow method:
var win = tabbar.tabWindow(tabId);
var elem = win.document.getElementById(…);
I have a tree on the attached to a layout cell “a” and on cell"b" I have loaded an aspx page using
dhxLayout.cells(“b”).attachURL(“Product.aspx”);
I tried using the tree onClick event, but am not able to access the controls on the right side aspx page.
You can use the following approach to access the controls inside cell iframe:
var win = dhxLayout.cells(“a”)._frame.contentWindow;
var tree = win.dhxTree;
…