PDA

View Full Version : changing loadMask message text



badgerd
13 Aug 2007, 4:13 PM
I have various js function calls eg: initial load, searching and opening that uses the same grid.

Is there a way I can change the loadMask message depending on the call that is made?

In my code the initial grid is:



grid = new Ext.grid.Grid('el_emailgrid', {
ds: ds,
cm: cm,
enableDrag:false,
loadMask: {msg: 'Loading...'}
});


How could I change the 'Loading...' message to say 'Searching...' if I was to click on a search function call in my code?

Any ideas?

jack.slocum
13 Aug 2007, 4:22 PM
grid.loadMask.msg = 'Your message'. This can be called before the message is displayed each time.

badgerd
13 Aug 2007, 4:32 PM
Cool, thanks Jack, that worked.

Also Jack, just wanted to say that Ext is simply the best thing to happen since sliced bread! Well done on all the great work!!