Memory leak in destroy function
Hi,
please fix memory leak probably caused by typing error (filterContainer -> filterContainers). The this.filterContainer does not exist, so filterContainers' items are never destroyed. This is a very unpleasant bug since the destroyFilters function is executed almost after each action with the filter.
Code:
destroyFilters: function()
{
if(this.filterFields)
{
for(var ff in this.filterFields)
{
Ext.destroy(this.filterFields[ff]);
delete this.filterFields[ff];
}
}
if(this.filterContainer)
{
for(var ff in this.filterContainers)
{
Ext.destroy(this.filterContainers[ff]);
delete this.filterContainers[ff];
}
}
}
refreshing grid in background
Hello,
I have a problem when using a grid with header filters in a card layout.
This is what I have:
The first panel shows the grid. In my application I have an edit dialog for records in the grid.
In some cases I must reload the store when the grid is hidden.
In this case the filter fields in the header disappear completely when using version 2.0.5.
If I use version 2.0.6, the filter fields are minimized and the trigger is shown.
You can try it here:
http://sandbox.astuteq.de/
- go to the page
- press "reload"
- press "show grid"
source:
http://sandbox.astuteq.de/js/sandbox.js
Any ideas?
Thanks!
Stefan