我使用動態網格使用這個插件, http://www.sencha.com/forum/showthread.php?242594-Dynamic-grid-with-dynamic-model尋呼和分組動態網格
我想讓尋呼它,
我試着像,
pageSize: 10,
proxy: {
type: 'rest',
url: me.url,
reader: {
type: 'dynamicReader',
totalProperty: 'totalCount'
}
}
})
});
me.bbar = Ext.create('Ext.PagingToolbar', {
store: me.store,
displayInfo: true,
displayMsg: 'Displaying topics {0} - {1} of {2}',
emptyMsg: "No topics to display"
});
在DynamicGrid
, JS。
totalProperty無法正常工作。我是否正確設置了該物業?
然後我也試圖在同一個插件中進行分組。
我有一個組合框與一些領域,並希望從它動態選擇分組字段。當我在組合框中選擇一個字段時,它會將該數據發送到網格的groupField屬性。
我在控制器一樣選擇了組合框的值,
var groupData = Ext.ComponentQuery.query('#groupid')[0].getValue();
,我把它發送到網格狀,
Ext.define('Group', {
singleton: true,
param: groupData
});
我得到的是網格屬性(在DynamicGrid.js)像,
groupField: [Group.param]
但是,這會自動選擇第一個領域的groupField屬性之前,甚至選擇g組合框中的任何內容並進行分組,選擇組合框中的其他字段也不起作用,它始終具有用於分組的第一個字段。出了什麼問題?請幫忙。
謝謝!