Feb 04, 2011, 6:59 PM
[CLOSED] [1.0] Loadmask on Two Grid Sample
Hi,
I have a page similar to the Two Grid example, and im trying to put a loading mask when the Add All button is clicked.
https://examples1.ext.net/#/GridPane...ous/Two_Grids/
I couldnt get it to work. Am I missing something? Any help will be greatly appreciated.
Here's my code
I have a page similar to the Two Grid example, and im trying to put a loading mask when the Add All button is clicked.
https://examples1.ext.net/#/GridPane...ous/Two_Grids/
I couldnt get it to work. Am I missing something? Any help will be greatly appreciated.
Here's my code
addAll : function (source, destination) {
var loadMask = new Ext.LoadMask(GridPanel2.body, { msg: 'Processing... Please wait..' });
loadMask.show();
source = source || GridPanel1;
destination = destination || GridPanel2;
var records = source.store.getRange();
source.store.removeAll();
Ext.each(records, function(record){
destination.store.addSorted(record);
});
loadMask.hide();
},
Thanks!
Last edited by Daniil; Feb 09, 2011 at 2:13 PM.
Reason: [CLOSED]