We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10378
    • 375 Posts
    Hello,

    I'd need a little help from ExtJs/MODExt pros:

    I have a CMP with a tab panel interface. The action bar of the CMP has a "Settings" button. Clicking this "Settings" button, dynamically adds another tab (Settings panel) to the tab panel. This dynamically added tab can be closed. by the user.

    This "Settings" panel holds some vertical tabs. One of these vertical tabs holds a MODx.grid which is filled by a processor.

    The problem I have is - if the dynamically added tab is closed, I get some weird renderings on the CMP and the JS console throws an error:

    Uncaught TypeError: Cannot read property 'id' of undefined


    The problem only persists as long as the grid is rendered at least once. If I commenting out the grid code, all works as expected.
    I think the problem is, that the grid can not be destroyed properly when the tab is closed.(?)

    Any hint?

    Greetings,
    Martin

    p.s. I should post some code, but the source has about 380 lines, so I don't know what to post...
      Freelancer @bitego http://www.bitego.com
      ---
      GoodNews - one of the most advanced and integrated Group Mailer premium add-ons for MODX Revolution!
      More infos here: http://www.bitego.com/extras/goodnews/