(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
})
});
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}}
});
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.