View Full Version : Howto add a mask to a gridpanel when saving?

3 Dec 2010, 1:30 PM

I have a Gridpanel and a button in the toolbar which I use for saving any changes in the grid.

But I cant seem to figure out how to add mask when saving.. it is easy enough to add one when loading, so I guess it should be equally as easy to do it on save :/


3 Dec 2010, 2:52 PM
grid.el.mask('Saving', 'x-mask-loading');

3 Dec 2010, 3:02 PM
hmm ok... but only gets me halfway since it doesnt get removed when save is finished

btw. im using a jsonstore

3 Dec 2010, 3:04 PM
Dude...grid.el.unmask()...Call it when the store is finished loading/the save method returns/whenever...

3 Dec 2010, 3:06 PM
Seriously, go get "Ext JS In Action". It's like a 2 hour read and it's packed with basic stuff, including a detailed example of exactly what you're asking...

6 Dec 2010, 5:25 AM
yeah you are right.. sorry .. didn't read the book, found it to be easy enough by listening on specific events