Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User talha06's Avatar
    Join Date
    Jul 2009
    Location
    Turkey
    Posts
    303
    Answers
    8
    Vote Rating
    0
    talha06 is on a distinguished road

      0  

    Default Answered: ExtJS 4 Remote Treepanel Error

    Answered: ExtJS 4 Remote Treepanel Error


    I'm trying to load my treepanel; everything is OK if all of them are leaves. But if one of them has children, I'm able to render but when I click to expand it, it gives an error like this:
    Code:
    records[i] is undefined
    ns[i].viewRecordId = records[i].internalId;

    Here's the data that I load:
    Code:
    {
        "data": [{
            "active": 1,
            "adminOnly": 0,
            "iconCls": "icon-boss",
            "menuId": 1,
            "order": 1,
            "text": "About Me",
            "upMenuId": 0,
            "view": "panel.AboutPanel",
            "leaf": false,
            "children": [{
                "active": 1,
                "adminOnly": 0,
                "iconCls": "",
                "menuId": 11,
                "order": 11,
                "text": "Biography",
                "upMenuId": 1,
                "view": "panel.AboutPanel",
                "leaf": true
            }]
        }, {
            "active": 1,
            "adminOnly": 1,
            "iconCls": "icon-key",
            "menuId": 2,
            "order": 2,
            "text": "Admin Panel",
            "upMenuId": 0,
            "view": "panel.AboutPanel",
            "leaf": true
        }, {
            "active": 1,
            "adminOnly": 0,
            "iconCls": "icon-users",
            "menuId": 4,
            "order": 4,
            "text": "User List",
            "upMenuId": 0,
            "view": "user.UsersGrid",
            "leaf": true
        }, {
            "active": 1,
            "adminOnly": 1,
            "iconCls": "icon-menu",
            "menuId": 6,
            "order": 6,
            "text": "Menu List",
            "upMenuId": 0,
            "view": "menu.MenusGrid",
            "leaf": true
        }, {
            "active": 0,
            "adminOnly": 0,
            "iconCls": "icon-user",
            "menuId": 8,
            "order": 8,
            "text": "User Panel",
            "upMenuId": 0,
            "view": "user.UserPanel",
            "leaf": true
        }, {
            "active": 1,
            "adminOnly": 0,
            "iconCls": "icon-pie-chart",
            "menuId": 9,
            "order": 9,
            "text": "User Stats",
            "upMenuId": 0,
            "view": "user.UserChart",
            "leaf": true
        }, {
            "active": 1,
            "adminOnly": 0,
            "iconCls": "icon-card",
            "menuId": 10,
            "order": 10,
            "text": "Card Registeration",
            "upMenuId": 0,
            "view": "card.CardPanel",
            "leaf": true
        }],
        "totalCount": 7,
        "success": true
    }
    I'll be happy if someone can helps me.
    Thanks in advance.
    Regards..
    "People will never forget how you made them feel."
    linkedin.com/in/talhakabakus

  2. Try to fix your returned data as below (using 'data' instead of 'children'):
    Code:
    {
        "data": [{
            "active": 1,
            "adminOnly": 0,
            "iconCls": "icon-boss",
            "menuId": 1,
            "order": 1,
            "text": "About Me",
            "upMenuId": 0,
            "view": "panel.AboutPanel",
            "leaf": false,
            // "children": [{
            "data": [{
                "active": 1,
                "adminOnly": 0,
                "iconCls": "",
                "menuId": 11,
                "order": 11,
                "text": "Biography",
                "upMenuId": 1,
                "view": "panel.AboutPanel",
                "leaf": true
            }]
        }, {

  3. #2
    Sencha - Community Support Team
    Join Date
    Jan 2012
    Posts
    1,376
    Answers
    346
    Vote Rating
    113
    vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all

      0  

    Default


    Try to fix your returned data as below (using 'data' instead of 'children'):
    Code:
    {
        "data": [{
            "active": 1,
            "adminOnly": 0,
            "iconCls": "icon-boss",
            "menuId": 1,
            "order": 1,
            "text": "About Me",
            "upMenuId": 0,
            "view": "panel.AboutPanel",
            "leaf": false,
            // "children": [{
            "data": [{
                "active": 1,
                "adminOnly": 0,
                "iconCls": "",
                "menuId": 11,
                "order": 11,
                "text": "Biography",
                "upMenuId": 1,
                "view": "panel.AboutPanel",
                "leaf": true
            }]
        }, {

  4. #3
    Sencha User talha06's Avatar
    Join Date
    Jul 2009
    Location
    Turkey
    Posts
    303
    Answers
    8
    Vote Rating
    0
    talha06 is on a distinguished road

      0  

    Default


    Thanks a lot vietits, it solved my problem..
    "People will never forget how you made them feel."
    linkedin.com/in/talhakabakus

Thread Participants: 1

Tags for this Thread