I try to have a tree that can load data from an XML file (it will be a data provider in the future but that doesn’t matter), display it and can be refreshed by the user. If the XML has changed it should update the tree accordingly. We expect to have around 25 subnodes each containing 250 leaves.
I am unable to achieve this simple task.
I have the following code :
Tree test : from file
loaded from " . tree_data_path; ?> [/code]
I will attach the data file mockTree.xml.
Here is what I think is probably a bug :
- Load the page
it returns 0 as expected, it is not loaded yet.
- hit the refresh button
- Wait… it is slow, very slow.
- do again tree_agents.getItemParsingState(‘agent_agent0’);
This time it returns 1, which explains that the previous step was really slow : the smart xml parsing has failed.
What am I doing wrong here ? what should I do to have a refresh as fast as a loading yet using smartRefreshBranch ?
mockTree.xml.tgz (3.78 KB)