<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:8pt">Hi,<br><br>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.<br><br><br><div>Here is my code without the mask.<br><br>var wea_attribgridPanel = new Ext.grid.GridPanel({<br> title: "Tabelle",<br> region: "center",<br> autoWidth : true,<br> stripeRows: true,<br> height: 350,<br> loadMask: true,<br> viewConfig: {<br> forceFit: true<br> },<br> store:
wea_store,<br> sm: new GeoExt.grid.FeatureSelectionModel(),<br> cm: new Ext.grid.ColumnModel({<br> defaults: {<br> sortable: true<br> },<br> columns: [{<br> header: "Bez",<br> dataIndex: "Bez",<br> width: 25<br> }, {<br> header: "Standort",<br>
dataIndex: "Standort"<br> }, {<br> header: "Betreiber",<br> dataIndex: "Betreiber",<br> width: 135<br> }]<br> }),<br> bbar: [{<br> text: "an Auswahl heranzoomen",<br> handler: function(){<br> wea_attribgridPanel.getSelectionModel().each(function(rec){<br>
var feature = rec.get("feature");<br> wea_mapPanel.map.zoomToExtent(feature.geometry.getBounds());<br> })<br> }<br> },toolbarItems]<br> });<br><br><br> I though If I put this in after the bbar it would work, but nothing happens<br><br>listeners:{show:function() {<br> this.loadMask = new Ext.LoadMask(this.body, {<br> msg:'Daten werden geladen...'<br> });<br> }}<br><br><br><br>could anyone offer any assistance?<br><br>thanks,<br><br>Robert<br></div>
</div><br></body></html>