-
30 Jun 2010 12:25 AM #1
JSON Format returned from Ext.Direct (TreeLoader component)
JSON Format returned from Ext.Direct (TreeLoader component)
Hi I'm trying to update an application to using Ext.Direct, which was going just fine until I got to the TreePanel.
I'm using extdirect4dotnet.
I took a look at the Tree example for Ext.Direct and the response comes back as a JSON object i.e.:
However, when I call my getTree method using extdirect4dotnet all the responses come back as an array:Code:{ "type": "rpc", "tid": 2, "action": "TestAction", "method": "getTree", "result": [etc...] }
This works fine for regular Direct Method calls where I define my own response handler, however for TreeLoader I don't think you can do that can you? Can anyone point me in the right direction?Code:[ { "type": "rpc", "tid": 3, "action": "Tree", "method": "GetTree", "result": [ etc...] } ]
Thanks
-
30 Jun 2010 11:45 AM #2
Result should be an array of objects:
Need a bit more info to tell what could be wrong (complete treepanel code and server side method).PHP Code:{"type":"rpc","tid":5,"action":"Menu","method":"getTree","result":[{"id":"id","type":"class","text":"Name","code":"WEB401","leaf":false,"expanded":true}]}
Similar Threads
-
Format JSON for TreeLoader
By robw in forum Ext 2.x: Help & DiscussionReplies: 7Last Post: 20 Apr 2010, 1:43 PM -
[FIXED][3.0rc2] TreeLoader's 'load' event never gets fired with Ext.Direct
By elishnevsky in forum Ext 3.x: BugsReplies: 8Last Post: 14 Mar 2010, 2:44 AM -
TreeLoader loading custom json format
By emredagli in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 2 Nov 2009, 11:27 PM -
TreeLoader:How to catch and change the returned json before it will be applied ?
By mabra in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 16 Jul 2009, 3:20 PM -
uiProvider returned from JSON data must be string format
By dfenwick in forum Ext 2.x: Help & DiscussionReplies: 11Last Post: 19 Apr 2007, 12:06 PM


Reply With Quote