1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    8
    Vote Rating
    0
    kanthu509 is on a distinguished road

      0  

    Default Unanswered: Ext.tree.panel is not loading

    Unanswered: Ext.tree.panel is not loading


    Hi,
    I have a requirement where need to generate a tree from the server response.
    Server response comes as JSONArray(Spring JSONArray) which contains root and child nodes.
    Earlier have used TreePanel from Extjs3.x, it worked fine,
    we migrated from Extjs3.x to Extjs4.x , now nothing is happening even server url is not hitting.

    Tried using TreeStore but is not supporting JSONArray format, any help would be appriciated.

    Please check the below code snippet for pannel definition.

    var availsvcTree = Ext.create('Ext.tree.Panel',
    { id:'avail-tree-panel', width:280, height:250,
    bodyStyle: 'background-color:white;',
    frame: true,
    folderSort:true,
    loader: {
    url:'/main/avail_tree.json'
    },
    autoScroll:true,
    containerScroll: true,
    root: {
    text: 'Available Services',
    id: 'source',
    },
    rootVisible: true
    });

  2. #2
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,669
    Answers
    130
    Vote Rating
    110
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      0  

    Default


    i would definitely go for the treeStore, since it offers a lot of additional goodies.

    it should not be a big deal to convert your array into an object:

    Code:
    {success: true, data: myJSONarray}
    Best regards
    Tobias Uhlig
    __________

    S-CIRCLES Social Network Engine

  3. #3
    Sencha User
    Join Date
    Nov 2011
    Posts
    8
    Vote Rating
    0
    kanthu509 is on a distinguished road

      0  

    Default Ext.data.TreStore isNode is noll or not an Object

    Ext.data.TreStore isNode is noll or not an Object


    Hi,

    Have tried using the TreeStore to load the data to the Ext.tree.Panel.

    While page loading the page am getting ' record.isNode is noll or not an Object' from NodeInterface , after clicking the node getting internalId is null or not an object.

    Spent lot of time to resolve but no luck any help would be appricitaed.If possible pls provide sample code

    Below code is the part of the response coming from Server.

    Actually this is JSONArrayFormat.


    {"id":4,"text":"Region","leaf":false,"children":[{"id":2219,"text":"AFRICA","leaf":false,"children":[{"id":5,"text":"Territory","leaf":false,"children":[{"id":2058,"text":"ALGERIA","leaf":false,"children":[{"id":6,"text":"SubTerritory","leaf":true}]}]}]}]}

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi