How to display numberoffeatures in map using geoext on grid?
Ext.onReady(function() {
app = new Ext.Viewport({
layout: "border",
items: items
});
items.push({
xtype: "grid",
ref: "capsGrid", // makes the grid available as app.capsGrid
title: "Available Layers",
region: "north",
height: 150,
viewConfig: {forceFit: true},
store: new GeoExt.data.WFSCapabilitiesStore({
url: "http://localhost:8080/geoserver/wfs?request=GetFeature&typename=GisData:sites&version=1.1.1&resultType=hits&filter=(%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3EVendor%3C/PropertyName%3E%3CLiteral%3EvendorTE%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E)",
protocolOptions: {version: "1.1.1"},
autoLoad: true
}),
columns: [
{header: "numberOfFeatures", dataIndex: "numberOfFeatures", sortable: true}
]
});
I get xml response in firebug:
