View Full Version : Grid on destroy (loadmask issue)

28 Jul 2011, 5:53 AM
I open a view in a tab, and the view contains a grid in one of its child,
and when i close that tab, it tries to destroy the grid.
But when it comes to view, it tries to destroy, and loadMask tries to bindStore,
where loadMask is true.
Please fix this issue as soon as possible

AbstractView -> bindStore ->

if (!store) {
if (me.loadMask) {
me.store = null;

Here loadMask is true, so it is trowing an error.

Fix is to give the

Grid.viewConfig = {
loadMask: false

But i expect a proper fix from ExtJs.
Thanking you

29 Jul 2011, 9:08 AM
+1 This is happens because grid created loadMask object on "render" event, so if you destroy not rendered grid (in collapsed accordion layout) error throws.

31 Jul 2011, 6:16 PM
This is a known bug (http://www.sencha.com/forum/showthread.php?136528-4.0.2-Store.bindStore-assumes-me.loadMask-has-bindStore-function)

1 Aug 2011, 4:18 AM
As has been said this is a known bug but it is affecting many many users so I really hope Sencha can prioritize it (given it seems relatively trivial to solve)