1. #1
    Sencha Premium Member
    Join Date
    Aug 2013
    Posts
    1
    Vote Rating
    0
    elillodovetail is on a distinguished road

      0  

    Default Unanswered: problem with remove and add item to Panel .

    Unanswered: problem with remove and add item to Panel .


    .I received Uncaught TypeError: Cannot read property 'parentNode' of undefined

    updateCol:function(){
    Ext.getCmp('idReposotorySubcategory').removeAll();
    arr=[];
    for (var i = 0; i < col; i++) {
    arr[i] = new Ext.Panel({
    id:'idPanelSubCategory_'+(i+1),
    width:'250px',
    height:'300px',
    style:'border:1px solid #b4b4b4; border-top:none;border-left:none',
    items:[]
    })
    Ext.getCmp('idReposotorySubcategory').add(arr[i]);
    }
    }
    Ext.getCmp('idReposotorySubcategory').doLayout(); (here is de error)

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    3,955
    Answers
    330
    Vote Rating
    132
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all

      0  

    Default


    What debugging have you done so far? Hard to tell from the info you included. What does the definition look look like for the 'idReposotorySubcategory' container?
    Get more personalized support via a support subscription.

    Want to learn Sencha Touch 2? Check out
    Sencha training
    Sencha Touch in Action

    Need more help with your app? Hire Sencha Services services@sencha.com

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

Thread Participants: 1