PDA

View Full Version : Loading/progress indicator for Grid



justheatingup
8 Apr 2007, 8:28 PM
http://extjs.com/forum/showthread.php?t=4185

Another thread touches on a similar topic.

http://extjs.com/forum/showthread.php?t=4351

jack.slocum
10 Apr 2007, 6:55 PM
Something like this is in SVN. Only I made it generic so it can be used with any component.

It can be used on any Element:

Bind to UpdateManager by default:

new Ext.LoadMask(el, {msg: 'Please Wait...'});

Bind to Store instead:

new Ext.LoadMask(el, {msg: 'Please Wait...', store: yourStore});

Bind to TreeLoader:

new Ext.LoadMask(tree.el, {msg: 'Please Wait...', store: tree.loader});


The grid has a shortcut config option:


loadMask : true
or

loadMask : {msg: 'Loading Data...', msgCls: 'some-css-class'}

In Ext.Element the mask() function got two new (optional) arguments:


el.mask(msg, msgCls);

This will hopefully meet all your masking and loading needs. :D

mikegiddens
10 Apr 2007, 7:03 PM
Always the best!!! Please support the Ext project folks so we can keep this man working.

Thanks Jack.

burn
18 Apr 2007, 4:04 PM
/signed =D>

justheatingup
24 Apr 2007, 2:54 PM
very nice ;) Worked great