一个关于expt.grid.panel的问题
function find() {
var ajlb = $("#ajlb").val();
var ndh = $("#ndh").val();
var ajzh = $("#ajzh").val();
wjaStore.load({ params: {
ajlb: ajlb,
ndh: ndh,
ajzh: ajzh
}
});
function AjGrid() {
wjaStore = Ext.create('Ext.data.Store', {
id: 'wjaStore',
fields: ['id', 'name', 'age'],
pageSize: 25,
remoteSort: false,
proxy: {
type: 'ajax',
url: '/Finder/GetAjList',
reader: {
type: 'json',
root:"rows",
totalProperty: "results"
}
}
});
wjaGrid = Ext.create('Ext.grid.Panel', {
store: wjaStore,
renderTo: Ext.getBody(),
columns: [{
text: '序号',
sortable: false,
dataIndex: 'id',
align: "center"
}, {
text: '姓名',
sortable: false,
dataIndex: 'name',
align: "center"
}, {
text: '年龄',
sortable: false,
align: "center",
&nb