2
我有一个像JSONStore:EXTJS JsonStore不加载proeprly
OrdersStore = Ext.extend(Ext.data.JsonStore, {
constructor: function(cfg) {
cfg = cfg || {};
OrdersStore.superclass.constructor.call(this, Ext.apply({
storeId: 'ordersStore',
url: '/ajaxSupport.action',
root: 'rows',
baseParams: {
action: 'getorderlegsearchgrid'
},
fields: [
{
name: 'orderId'
}
]
},
cfg));
}
});
new OrdersStore();
这家店连接到网格: 'pendingOrdersGrid'。 当我做:
alert(Ext.util.JSON.encode(this.pendingOrdersGrid.getStore().getAt(0)));
我希望得到的第一条记录。但我得到“空”
你真的应该使用Firebug,这将让你的生活更容易,如果你正在处理的ExtJS – sra 2011-05-16 18:32:12