Extjs中对GridPanel的列排序

    ProjectStore = new Ext.data.GroupingStore({
        proxy: new Ext.data.HttpProxy({
            url: "DATA/ProjectInfo/ProjectInfo.aspx",
            method: "POST"
        }),
        reader: new Ext.data.JsonReader({
            fields: projectfields,
            root: "data",
            totalProperty: "totalCount"
        }),
        sortInfo: {
            field: 'region',
            direction: "ASC"
        },

        remoteSort: true //服务器端排序

    });
SortInfo为对某列排序的代码。注意如果gridpanel采用了分页,要加上 remoteSort: true

你可能感兴趣的:(服务器,url,ExtJs)