[Users] Loading mask in grid

Robert Buckley robertdbuckley at yahoo.com
Wed Jan 12 17:24:15 CET 2011


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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110112/3b3c1956/attachment.htm 


More information about the Users mailing list