xpouj04
14 Feb 2012, 6:30 AM
Hi,
I have a problem when calling load() method of Ext.data.TreeStore (I use Ext JS 4.0.7)
The problem seems to depend on the JSON response object.
In this case, no additional ajax requests are fired:
{text: 'ROOT', expanded: true, children: []}
However in this case, two additional ajax requests are fired:
{text: 'ROOT', expanded: true, children: [{'id':'N01','text':'1','leaf':true},{'id':'N02','text':'2','leaf':true}]}
I tried that with more responses and it comes out that the number of additional ajax calls depends on the number of JSON objects contained in the response, which is a big problem when trees are more complex :s
Any solution or workaround?
Thanks,
Jan
I have a problem when calling load() method of Ext.data.TreeStore (I use Ext JS 4.0.7)
The problem seems to depend on the JSON response object.
In this case, no additional ajax requests are fired:
{text: 'ROOT', expanded: true, children: []}
However in this case, two additional ajax requests are fired:
{text: 'ROOT', expanded: true, children: [{'id':'N01','text':'1','leaf':true},{'id':'N02','text':'2','leaf':true}]}
I tried that with more responses and it comes out that the number of additional ajax calls depends on the number of JSON objects contained in the response, which is a big problem when trees are more complex :s
Any solution or workaround?
Thanks,
Jan