PDA

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



Markj
3 Dec 2010, 1:30 PM
Hi

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 :/

/Mark

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

Markj
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

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

darthwes
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...

Markj
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