Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Feb 13, 2007 15:25
open dhtmlx forum
I am trying to load some items in my tree which is dynamically loaded from the servlet. I am calli...

I am trying to load some items in my tree which is dynamically loaded from the servlet.

I am calling this after the tree is created, but seems that it is not working. Can you please let me know what wrong am I doing and the correct way to load items dymanically.  

var hierarchyLoaded = new Array();
hierarchyLoaded[0] = "0";
hierarchyLoaded[1] = "IMP";
hierarchyLoaded[2] = "EXP";
tree.openItemsDynamic(hierarchyLoaded,true) ;

Answer posted on Feb 13, 2007 15:26

The tree.openItemsDynamic method accepts a list as first parameter, not an array. So in you case correct code will be:

                tree.openItemsDynamic('0,IMP,EXP',true)

Answer posted by Embre (Support) on Dec 09, 2014 01:07

To find more precise comments upon this issue, we can offer you read about datagrid components and javascript change date format.