1. #1
    Ext User
    Join Date
    Jan 2010
    Posts
    36
    Vote Rating
    0
    Cyberqat is on a distinguished road

      0  

    Default One last designer/data question

    One last designer/data question


    What is the right way to load data manually into a Tree laid out in Extjs Designer?
    Do i reset tree.loader to a new loader or is there a better/more elegant way to update the tree's data model programmatically (as opposed to loading from a a URL)

  2. #2
    Sencha - Desktop Packager Dev Team jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Frederick, MD
    Posts
    1,747
    Vote Rating
    7
    jarrednicholls will become famous soon enough jarrednicholls will become famous soon enough

      0  

    Default


    You could use the TreeNode API and append children to your root node: http://www.extjs.com/deploy/dev/docs....tree.TreeNode

    The TreeLoader offers the ability to load node data only from an http endpoint, and does a "preload" of children nodes. However, loading tree data manually usually means that you use the Node API directly to append children, recursively.

    There is a private method in the TreeLoader class that you can use to setup all of your data at once. First, you can create a new TreeNode that specifies "children", much like you see in the TreeLoader example: http://www.extjs.com/deploy/dev/docs...ree.TreeLoader
    After the node is created, you can set it as the root node for your TreePanel by calling setRootNode(). Once that's done, you can then call myTree.getLoader().doPreload(rootNode); which will setup all of your children nodes specified on your root node, recursively down the tree.

  3. #3
    Ext User
    Join Date
    Jan 2010
    Posts
    36
    Vote Rating
    0
    Cyberqat is on a distinguished road

      0  

    Default


    Terrific detail, thank you again!

    My game is now communicating between client and server, though there is still a lot of work to be done. Its a multi-player text-adventure construction system. Here are a few screen shots of interfaces created with extjs & ext designer..




  4. #4
    Ext User
    Join Date
    Jun 2010
    Posts
    1
    Vote Rating
    0
    zhilizhe@gmail.com is on a distinguished road

      0  

    Default


    test my profile picture :)

Similar Threads

  1. First steps with the Designer: One question
    By wurstkuchen in forum Ext Designer: Help & Discussion
    Replies: 5
    Last Post: 25 May 2010, 5:46 AM
  2. Ext Designer Question
    By imegai in forum Ext Designer: Help & Discussion
    Replies: 2
    Last Post: 12 May 2010, 7:35 AM
  3. Question about combobox config in designer
    By Mango_lier in forum Ext Designer: Help & Discussion
    Replies: 18
    Last Post: 27 Apr 2010, 2:28 AM

Thread Participants: 2

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