Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Are recordcomponents in the pool destroyed? (when the grid is destroyed)

    Hi,
    I seem to notice that when I close a tab with a grid (with record components) that the record components are not all destroyed. Is this a correct observation?

    Adding the code below to my custom grid class, solved it for me:

    Code:
     
      destroy: function() {
        var i, components;
        this.Super('destroy', arguments);
        
        components = this.getRecordComponentPool();
        if (components) {
          for (i = 0; i < components.length; i++) {
            components[i].destroy();
          }
        }
      },

    #2
    Bump.......

    Comment


      #3
      Sorry for the delay - they were not automatically destroyed, but we decided this was an oversight and that they should be destroyed automatically by default. New builds will now automatically destroy recordComponents and there is a method you can call to prevent this for any individual recordComponent.

      Your code will basically safely no-op if you leave it in.

      Comment

      Working...
      X