PDA

View Full Version : How to Remove Loadmask from Grid



davidsanderson
12 Nov 2010, 1:55 PM
I want to set loadmask to false on a grid dynamically. How do I do that?

I'm trying to figure out how not fire a grid's store ajax call if a user hits a column header and there's nothing to sort, when remote sorting is turned on. Other wise, an error occurs because the user needs to enter something in a search field for the store.

So this is working fine so far on the grid config but it's still showing the load mask:
headerclick:
function(grid) {
if (typeof(grid.getView().getRow(0)) == 'undefined') {
grid.getStore().on(
'beforeload',
function() {
return false;
})
}
}

VinylFox
12 Nov 2010, 1:59 PM
grid.body.unmask()