ligerui加载数据(服务器)
我使用ligerui的grid进行数据展示,当查询时会需要再次提交请求应该是loadData(loadDataParm)方法或者loadServerData(param,...
我使用ligerui的grid进行数据展示,当查询时会需要再次提交请求应该是loadData(loadDataParm)方法或者loadServerData(param, clause)方法能够实现,但是说明太少,我在网上也找不到别的,特来求助,注:再次加载表格的方式虽然看起来成功的实现了再次请求,但只是在原表格的基础上盖上了新表格,进行复杂逻辑运算时会出错
真心无奈啊 展开
真心无奈啊 展开
4个回答
展开全部
function searchbtn_click() {
if (window.winfilter) {
window.winfilter.show();
}
else {
var filtercontainer = $("<div id=\"filtercontainer\"></div>").width(500).height(200).hide();
window.filter = filtercontainer.ligerFilter({ fields: fields });
window.winfilter = $.ligerDialog.open({
width: 540, height: 288,
target: filtercontainer, isResize: true, top: 50,
buttons: [
{
text: "确定", onclick: function (item, dialog) {
var group = window.filter.getData();
searchjson = JSON.stringify(group);
gridRefresh();
dialog.hide();
}
},
{ text: "取消", onclick: function (item, dialog) { dialog.hide(); } }
]
});
}
};
function gridRefresh() {
if (grid) {
var gridparms = [];
grid.options.parms[1].value = searchjson;
gridparms.push({ name: "funcid", value: "getprimary" });
gridparms.push({ name: "searchjson", value: searchjson });
gridparms.push({ name: "page", value: 1 });
gridparms.push({ name: "pagesize", value: grid.options.pageSize });
grid.loadServerData(gridparms);
}
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询