moonlightghost 2019-09-19 10:01 采纳率: 50%
浏览 292
已结题

ASP.NET MVC 分页查询问题

这个问答怎么删


     $(function () {     
        $('#crList').datagrid({
            url: 'GetCardReport',
            singleSelect: true,
            rownumbers: true,
            remoteSort: false,
            striped: true,
            nowrap: false,
            fitColumns: true,
            fit: true,
            pagination: true,
            pageList: [2, 500, 1000, 2000, 50000],
            pageSize: 2,
            columns: [[
                 {
                     field: 'Code', title: '编号', width: 150, align: 'center', sortable: true,
                     sorter: function (a, b) {
                         return (a > b ? 1 : -1);
                     }
                 },
                 {
                     field: 'Name', title: '名称', width: 150, align: 'center', sortable: true,
                     sorter: function (a, b) {
                         return (a > b ? 1 : -1);
                     }
                 },

                 {
                    field: 'Mold0', title: '卡式已存入', width: 150, align: 'center',
                    formatter: function (d) {
                        if (d == 0)
                            return '';
                        else
                            return  d ;
                    }
                    , sortable: true,
                    sorter: function (a, b) {
                        return (a > b ? 1 : -1);
                    }
                },
                {
                    field: 'Mold1', title: '本式已存入', width: 150, align: 'center',
                    formatter: function (d) {
                        if (d == 0)
                            return '';
                        else
                            return d;
                    }
                    , sortable: true,
                    sorter: function (a, b) {
                        return (a > b ? 1 : -1);
                    }
                },              
                {
                    field: 'MoldTotal', title: '共计', width: 150, align: 'center',
                    formatter: function (d) {
                        if (d == 0)
                            return '';
                        else
                            return d;
                    }
                    , sortable: true,
                    sorter: function (a, b) {
                        return (a > b ? 1 : -1);
                    }
                }
            ]],
            onLoadSuccess: function (data) {
            }
        });
    });
  • 写回答

1条回答

  • dabocaiqq 2019-09-19 17:16
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题
  • ¥20 yolov5自定义Prune报错,如何解决?