View Full Version : Re-target loading masks?

6 Jul 2014, 12:01 PM
I'm having a bit of trouble trying to change the loading masks associated with certain components to point to other components.

For example I want to change my grid's loading mask to point to it's parent container, which happens to be a window. This way, whenever the store on the grid reloads, it shows the entire window as being in a load state, rather than just the grid.

Of course all of the windows are dynamically generated, so I need to way (preferably in my controller) to re-target the loading masks associated with the grids, to point to their associated windows.

Does anyone have an example of doing this? I'm been messing with viewConfig and loadMask on the grid but haven't gotten very far.

6 Jul 2014, 6:13 PM
Okay, I think my issue was trying to re-use the grid's loadMask. Instead I disabled the loadMask on the grid, and created a new one mapped to my window, and the grid's store. Doing this gave me the effect I was looking for.