1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    6
    Vote Rating
    0
    jjoe64 is on a distinguished road

      0  

    Default Unanswered: TreeGrid asynchronous loading of children (best practice)

    Unanswered: TreeGrid asynchronous loading of children (best practice)


    Hi.
    What is the best way to do lazy loading of the children items in a TreeGrid?
    Because I have a huge set of items, I have to load the children items from the server when the parent item expands.

    Is there any way implemented in GXT or do I have to load them manually..?

    Thanks.

  2. #2
    Sencha User PhiLho's Avatar
    Join Date
    Nov 2011
    Location
    Near Paris, France
    Posts
    139
    Answers
    2
    Vote Rating
    1
    PhiLho is on a distinguished road

      0  

    Default


    Are you looking for the Async TreeGrid?
    http://www.sencha.com/examples-dev/#...:asynctreegrid

  3. #3
    Sencha User
    Join Date
    Jan 2012
    Posts
    6
    Vote Rating
    0
    jjoe64 is on a distinguished road

      0  

    Default


    thanks.
    I already solved it in the meantime.
    With google I didn't find this resource..

    [closed]

  4. #4
    Sencha User
    Join Date
    May 2012
    Posts
    3
    Vote Rating
    1
    ramdesolanki is on a distinguished road

      0  

    Default Issue

    Issue


    How you solved this? I am facing the same problem.

  5. #5
    Sencha User
    Join Date
    Dec 2012
    Posts
    24
    Answers
    1
    Vote Rating
    1
    sanbenwu is on a distinguished road

      0  

    Default


    i have the same problem,are you solved ?

  6. #6
    Sencha User
    Join Date
    May 2008
    Posts
    23
    Vote Rating
    0
    nebbian is on a distinguished road

      0  

    Default


    Just in case someone runs into this via google (like I did), the way to solve this is to do the following:

    If your data has a children field, then it will not asynchronously load children.

    If you want asynchronous loading, you need to remove the 'children' field from your data.

    ie: This will asynchronously load when you click on the folder
    Code:
    [{
        "ShopTree": {
            "id": "ShopCategory1",
            "name": "Campers"
        },
        "leaf": false
    }, {
        "ShopTree": {
            "id": "ShopCategory5",
            "name": "Accessories"
        },
        "leaf": false
    }]
    while this will not asynchronously load:
    Code:
    [{
        "ShopTree": {
            "id": "ShopCategory1",
            "name": "Large Items"
        },
        "children": [],
        "leaf": false
    }, {
        "ShopTree": {
            "id": "ShopCategory5",
            "name": "Accessories"
        },
        "children": [],
        "leaf": false
    }]

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar