我已经在我的项目中实现了TableSorter。现在的问题是,在某些情况下,我需要比数千条更多的记录。TableSorter插件通过ajax实现客户端的分页。我想让它在服务器端进行分页+我想在单个页面上排序,而不是整个数据。即,如果TableSorter的单页上有10条记录,则必须在该单页上进行排序(仅在这10条记录上)。我不能换成其他的表格插件。我该怎么办?我的数据来自模型。
发布于 2013-02-21 23:57:55
对于pager ajax demo,我必须手动更改serverSideSorting选项,使其对当前表内容进行排序。也许这对你也是有效的?尝试包含以下代码:
$('table').bind('pagerInitialized', function(e, c){
// allow current content sorting; this variable is automatically
// set to true when ajax is initialized
this.config.serverSideSorting = false;
});https://stackoverflow.com/questions/14995575
复制相似问题