2条回答 默认 最新
- Liekkas_BX 2017-07-17 22:41关注
我加载数据的设置是这样的:
var grid=$("#test_grid").kendoGrid({ dataSource: { transport : { read : { url : "service/request/fields", type:"GET", dataType : "json" } }, schema: { data:"fields", model: { fields: { id: { type: "string" }, name: { type: "string" } } } }, page:1, pageSize: 10, serverPaging: false, serverFiltering: false, serverSorting: false }, height: 200, groupable: true, sortable: true, filterable:true, pageable: { //控制展示按钮页 refresh: true, pageSizes: true, buttonCount: 5 }, columns: [ {field:"name",title:"Name",width:50}, {field:"id",title:"ID",width:50} ] });
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报