Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Meenakshi on Sep 15, 2009 10:47
open dhtmlx forum
DHTMLX Tree and Layout

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
Answer posted by Alex (support) on Sep 16, 2009 02:52

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(...);

Answer posted on Sep 16, 2009 03:08

 

 

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.

Answer posted by Alex (support) on Sep 16, 2009 10:10

You can use the following approach to access the controls inside cell iframe:

 var win = dhxLayout.cells("a")._frame.contentWindow;

var tree = win.dhxTree;

...