Results 1 to 2 of 2

Thread: JSON Format returned from Ext.Direct (TreeLoader component)

  1. #1
    Ext User
    Join Date
    Sep 2007
    Vote Rating

    Default 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.:
        "type": "rpc",
        "tid": 2,
        "action": "TestAction",
        "method": "getTree",
        "result": [etc...]
    However, when I call my getTree method using extdirect4dotnet all the responses come back as an array:
            "type": "rpc",
            "tid": 3,
            "action": "Tree",
            "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?


  2. #2
    Ext JS Premium Member
    Join Date
    Aug 2007
    Sarnia, ON, Canada
    Vote Rating


    Result should be an array of objects:
    PHP Code:
    Need a bit more info to tell what could be wrong (complete treepanel code and server side method).

Similar Threads

  1. Format JSON for TreeLoader
    By robw in forum Ext 2.x: Help & Discussion
    Replies: 7
    Last Post: 20 Apr 2010, 1:43 PM
  2. Replies: 8
    Last Post: 14 Mar 2010, 2:44 AM
  3. TreeLoader loading custom json format
    By emredagli in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 2 Nov 2009, 11:27 PM
  4. Replies: 2
    Last Post: 16 Jul 2009, 3:20 PM
  5. uiProvider returned from JSON data must be string format
    By dfenwick in forum Ext 2.x: Help & Discussion
    Replies: 11
    Last Post: 19 Apr 2007, 12:06 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts