Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Paul K on Aug 05, 2008 18:20
open dhtmlx forum
Initialize Tree but don't Display

Is it possible to initialize a dmhtmlxTree object from XML but not display it on the page? Does it require the HTML object in its constructor?

Paul
Answer posted by Support on Aug 06, 2008 01:56
The tree must be assigned to HTML object during creation, so it is not possible to initialize it without attaching to some DOM element. 
But you can create a tree inside hidden or detached element - in such case tree will initialize correctly, but will not be visible.