Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
(ExtJS 3.2.1)I need your help. I'm trying to create a grid.I use GeoExt.data.WMSCapabilitiesStore as a store.

var grid = new Ext.grid.GridPanel({
    title: "WMS Capabilities",
    store: wmsStore,
    cm: new Ext.grid.ColumnModel([
        {header: "Name", dataIndex: "name", sortable: true},
        {id: "title", header: "Title", dataIndex: "title", sortable: true}
    ]),
    sm: new Ext.grid.RowSelectionModel({singleSelect:true}),
     width:774,
    height:429,
       bbar: new Ext.PagingToolbar({
        pageSize: 10,
        store: wmsStore,
        displayInfo: true


    })
    });


C#
When I create a bbar, the problem appears. PageSize doesn't work. Grid have all items of store instead of 10.



var wmsStore = new GeoExt.data.WMSCapabilitiesStore({
    id: 'external_wms_store',
    url: OpenLayers.ProxyHost +            'http://demo.lizardtech.com/lizardtech/iserv/ows?SERVICE=WMS&REQUEST=GetCapabilities',
    autoLoad: {params:{start: 0, limit: 10}}

});


C#
Server returns all layers from server, although I use paramNames. I want to change a grid for it shows layers checked by me instead of load this layers from server. Which functions can help me for this? I have a little experience in extjs.


What I have tried:

I tried to use autoLoad and Load in store and grid with params. or paramNames, but it can't help me.
Posted
Updated 17-Jul-16 5:00am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900