Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by David Perchonok on Nov 04, 2008 08:02
open dhtmlx forum
DHTMLX Tree - Is there a way to set autoFocus from XML?

Is there a way to set the item to be focused within the XML so that we don't have to call tree.focusItem(itemStr) after the load?
Answer posted by Support on Nov 04, 2008 08:05
Unfortunately it is not possible. 
You can store such info in userdata and use onXLE event, which checking userdata and focusing item based on it. In such case data may be defined as part of XML.