extjs gridpanel 查询返回回来的数据是空时为什麽总是在读取中,我要的是显示无记录
BaseInfoStore.proxy=newExt.data.HttpProxy({url:String.format('Data/Code/Grid.aspx?VNa...
BaseInfoStore.proxy = new Ext.data.HttpProxy({
url: String.format('Data/Code/Grid.aspx?VName={0}&casenum={1}&ybrqcong={2}&ybrqdao={3}&sourceType={4}&sourceType1v={5}&causeType={6}&causeType1v={7}&causeType2v={8}&Leaderv={9}&VContact={10}&VAddress={11}&FinishDate={12}&AcceptDatec={13}&AcceptDated={14}&GJIsFinish={15}&RealCode1={16}&Content={17}&FinishDated={18}&IsSupervision={19}&baohanxiaji={20}', VName, casenum, ybrqcong, ybrqdao, sourceType, sourceType1v, causeType, causeType1v, causeType2v, Leaderv, VContact, VAddress, FinishDate, AcceptDatec, AcceptDated, GJIsFinish, RealCode1, Content, FinishDated, IsSupervision, baohanxiaji)
}); AddUserInfoWin.close();
BaseInfoStore.removeAll(); //清除原有数据
BaseInfoStore.load({ params: { start: 0, limit: pageSize} }); 展开
url: String.format('Data/Code/Grid.aspx?VName={0}&casenum={1}&ybrqcong={2}&ybrqdao={3}&sourceType={4}&sourceType1v={5}&causeType={6}&causeType1v={7}&causeType2v={8}&Leaderv={9}&VContact={10}&VAddress={11}&FinishDate={12}&AcceptDatec={13}&AcceptDated={14}&GJIsFinish={15}&RealCode1={16}&Content={17}&FinishDated={18}&IsSupervision={19}&baohanxiaji={20}', VName, casenum, ybrqcong, ybrqdao, sourceType, sourceType1v, causeType, causeType1v, causeType2v, Leaderv, VContact, VAddress, FinishDate, AcceptDatec, AcceptDated, GJIsFinish, RealCode1, Content, FinishDated, IsSupervision, baohanxiaji)
}); AddUserInfoWin.close();
BaseInfoStore.removeAll(); //清除原有数据
BaseInfoStore.load({ params: { start: 0, limit: pageSize} }); 展开
2个回答
展开全部
我记得分页工具有带一个返回数据为空时的显示提示
bbar : new Ext.PagingToolbar({
pageSize : 25,
store : jsonStore,
displayInfo : true,
displayMsg : 'Displaying topics {0} - {1} of {2}',
emptyMsg : "No topics to display",
items : ['-', {
pressed : true,
enableToggle : true,
text : 'Show Preview',
cls : 'x-btn-text-icon details',
toggleHandler : function(btn, pressed) {
var view = grid.getView();
view.showPreview = pressed;
view.refresh();
}
}]
})
bbar : new Ext.PagingToolbar({
pageSize : 25,
store : jsonStore,
displayInfo : true,
displayMsg : 'Displaying topics {0} - {1} of {2}',
emptyMsg : "No topics to display",
items : ['-', {
pressed : true,
enableToggle : true,
text : 'Show Preview',
cls : 'x-btn-text-icon details',
toggleHandler : function(btn, pressed) {
var view = grid.getView();
view.showPreview = pressed;
view.refresh();
}
}]
})
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询