我有一个应该显示大数据集的网格。我使用服务器端排序来对数据进行排序,但现在我的问题是数据被排序,但它只显示第一页。
通常,页面更改时会发送GET
个变量(posStart和count)。但在我进行排序后,它不会发送这些变量。它什么都不发送,这就是其他页面没有显示任何内容的原因。
更新
我有以下代码:
mygrid.attachEvent("onBeforeSorting",function(ind,type,direction){
window.a_direction = direction;
window.s_col = ind;
var grid = this;
grid.setSortImgState(true,window.s_col,window.a_direction);
grid.clearAndLoad("getEscalations.php?endDate="+$('#endDate').val()+"&startDate="+$('#startDate').val()+"&dir="+window.a_direction+"&ind="+window.s_col+"&surveyID="+$('#surveyID').val(),function(){
grid.setSortImgState(true,window.s_col,window.a_direction);
});
});
现在用于对数据进行排序,现在我运行此功能后,问题出现时,只填充第一页。