- // what about the toolbar??
- tab.grid.getView().mainWrap.mask("Deleting");
- new Pman.Request({
- url: baseURL + '/Roo/'+tbl+'.php',
- method: 'POST',
- params: {
- _delete : r.join(',')
- },
- success: function(response) {
- tab.grid.getView().mainWrap.unmask();
- if ( tab.paging ) {
- tab.paging.onClick('refresh');
- } else if (tab.grid.footer && tab.grid.footer.onClick) {
- // new xtype built grids
- tab.grid.footer.onClick('refresh');
- } else if (tab.refresh) {
- tab.refresh(); // this might cause problems as panels have a refresh method?
- } else {
- tab.grid.getDataSource().load();
- }
-
-
-
- },
- failure: function(act) {
+ Roo.MessageBox.progress("Delete Records", "Deleting 1/" + r.length );
+
+
+ var p = 0;
+
+ var delItem = function ()
+ {
+ Roo.MessageBox.updateProgress( (p+1)/r.length, "Deleting " + (1+p) + "/" + r.length );
+ Pman.Delete.simpleCall(tab, tbl, [ r[p] ], function(response) {