PDA

View Full Version : PageSize doesn't work in grid when I use WMSCapabilitiesStore as store



ber bor
13 Jul 2016, 6:53 AM
(ExtJS 2.1.0)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: store,
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: store,
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: 'http://demo.lizardtech.com/lizardtech/iserv/ows?SERVICE=WMS&REQUEST=GetCapabilities',
load:{params:{limit: 10, start:0}}



});

~o)

Gary Schlosberg
14 Jul 2016, 6:09 AM
What do your JSON responses look like from server?

ber bor
14 Jul 2016, 6:26 AM
Seems I don't understand your question.

ber bor
15 Jul 2016, 9:51 AM
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.