PDA

View Full Version : TreeGrid with XmlStore example



vajrakumar.d
4 Dec 2012, 1:48 AM
Can anybody give sample code for a TreeGrid in Extjs 3.4 with XmlStore (but not from Json and TreeLoader).
Why can't I use TreeGrid Example (http://dev.sencha.com/deploy/ext-3.4.0/examples/treegrid/treegrid.html):
The data which is coming from backend is in xml format but not in json.
I can't go for forcefit:true and filters
I hope some one might have already got this working but I am not able to get the source code.
Thanks in advance.

mitchellsimoens
6 Dec 2012, 8:19 AM
All you have to do is change the reader and create the xml file based on the json in the example.

vajrakumar.d
6 Dec 2012, 10:21 PM
Thanks for your response Mitchell.
Actually I am havent worked on JSON, and everytime converting the xml to json in client side wont make delay in load ?
because alredy server will take some time to prepare data and return xml, after that again processing it to convert to json ... I think some better way might be there.

If not is there any built in xml to json converter (as in Extjs 4) or if you can give me sample code that would be helpfull.

A sample code may help me to understand better.


Thanks in advance.

mitchellsimoens
7 Dec 2012, 6:26 AM
I never said you need to convert your xml into json. I said you can create xml based on what the json sends in the example provided.