jquery - 通过ajax更改数据源时的分页问题 - Infragistics WebDataGrid

标签 jquery asp.net ajax infragistics

我已经使用 ajax 更改了 Infragistics WebDataGrid 的数据源,如下所示。

$.ajax({
    type: "POST",
    url: "TestCS.aspx/GetDocumentsAjax",
    data: '{}',
    contentType: "application/json; charset=utf-8",
    dataType: "json",
    success: function (response) {
        var grdDoc = $find("DocumentListGrid");
        grdDoc.set_dataSource(response);
        grdDoc._pi.show(grdDoc);
        grdDoc.applyClientBinding();
        grdDoc._pi.hide(grdDoc);
    }
});

它已经起作用,但数据没有分为页面,我一次获取所有数据。是否有任何客户端可以帮助我持久分页、排序信息?

谢谢。

最佳答案

确保您没有为分页指定旧数据源。请参阅this link .

关于jquery - 通过ajax更改数据源时的分页问题 - Infragistics WebDataGrid,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36078406/

相关文章:

javascript - 淡入淡出文本输入 Javascript Ajax

javascript - 使用 Bootstrap Ladda UI 时无法停止旋转器

ASP.NET MVC twitter/myspace 风格路由

javascript - 更新后焦点丢失

asp.net - 从 IFrame 打印页面时,为什么我会看到不同的字体大小?

c# - 在 Entity Framework 中向部分类添加接口(interface)不起作用

javascript - AJAX 请求不会更改 div 中的文本

jquery - 从 jquery ajax 调用返回

jquery - 将 html 值添加到图像的属性

javascript - 转换 yyyy-mm-dd hh :mm:ss format to time ago