Results 1 to 2 of 2

Thread: problem with remove and add item to Panel .

  1. #1
    Sencha Premium Member
    Join Date
    Aug 2013
    Posts
    1
    Vote Rating
    0
      0  

    Default 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
    4,088
    Answers
    342
    Vote Rating
    136
      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.

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •