我在我的應用程序中使用帶有JSONrest存儲的OnDemandGrid。第一次,網格加載正常,如果我再次搜索其他數據,已經在網格中的數據與新數據重疊。有人告訴我如何重置或刷新OnDemandGrid?如何重置OnDemandGrid
這裏是我的代碼,
function (request, Memory, OnDemandGrid,JsonRest) {
var jsonstore = new JsonRest({target: url,idProperty: "srno"});
grid = new OnDemandGrid({
store: jsonstore,
columns: Layout,
minRowsPerPage : 40,
maxRowsPerPage : 40,
keepScrollPosition : true,
loadingMessage: "Loading data...",
noDataMessage: "No results found."
}, "grid");
grid.startup();
});
使用jsonreststore,如何實現這一目標? – SSayee
更新了我的答案 - 也許這是方法 – MiBrock