Kendo ui 分页在剑道网格上不起作用

Kendo ui 分页在剑道网格上不起作用,kendo-ui,Kendo Ui,我试图理解剑道UI网格是如何工作的。这个 在某个地方可以找到以下配置行: pageSize: 20, serverPaging: true, serverFiltering: true, serverSorting: true 这是获取数据的行 transport: { read: "http://demos.telerik.com/kendo- ui/service/Northwind.svc/Orders" }, 我想知道是否将上述参数发送到服

我试图理解剑道UI网格是如何工作的。这个

在某个地方可以找到以下配置行:

pageSize: 20,
serverPaging: true,
serverFiltering: true,
serverSorting: true
这是获取数据的行

transport: {
             read: "http://demos.telerik.com/kendo-  ui/service/Northwind.svc/Orders"
        },
我想知道是否将上述参数发送到服务器,即服务器端方法应该是这样的

public list<type> MyServerSideMethod(inr pageSize, bool serverPaging,
                  bool serverFiltering, boll serverSorting)
{

}
事实上,我已经应用了配置,但我网格上的寻呼机仍然无法工作。这就是为什么我想知道服务器中的方法是否需要这些值


感谢您帮助

将读取定义为一个函数,并操作发送到服务器的参数

transport: {
            read: function (options) {
                console.log(JSON.stringify(options)); // You can see what parameters send : check your console on paging 

               var commandOBJ=[{
                    Page: 1, // Once the first 20 item is loaded and you click for the next page you will have the page in "options" (should be like options.page)
                    PageSize:20 
                }];

                $.ajax({
                    url:"http://demos.telerik.com/kendo-  ui/service/Northwind.svc/Orders",
                    data: {  }, // send your page info here 
                    dataType: "json", // your data return type 
                    cache: false,
                    success: function (result) {
                        options.success(result);
                    },
                    error: function (result) {
                        options.error(result);
                    }
                });
            }
        }