Hi,
I´m trying to put a loading mask into a grid whilst it´s being loaded. This
seems to be rather problematic althought the examples make it seem easy.
Here is my code without the mask.
var wea_attribgridPanel = new Ext.grid.GridPanel({
title: "Tabelle",
region: "center",
autoWidth : true,
stripeRows: true,
height: 350,
loadMask: true,
viewConfig: {
forceFit: true
},
store: wea_store,
sm: new GeoExt.grid.FeatureSelectionModel(),
cm: new Ext.grid.ColumnModel({
defaults: {
sortable: true
},
columns: [{
header: "Bez",
dataIndex: "Bez",
width: 25
}, {
header: "Standort",
dataIndex: "Standort"
}, {
header: "Betreiber",
dataIndex: "Betreiber",
width: 135
}]
}),
bbar: [{
text: "an Auswahl heranzoomen",
handler: function(){
wea_attribgridPanel.getSelectionModel().each(function(rec){
var feature = rec.get("feature");
wea_mapPanel.map.zoomToExtent(feature.geometry.getBounds());
})
}
},toolbarItems]
});
I though If I put this in after the bbar it would work, but nothing happens
listeners:{show:function() {
this.loadMask = new Ext.LoadMask(this.body, {
msg:'Daten werden geladen...'
});
}}
could anyone offer any assistance?
thanks,
Robert
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users