zoukankan      html  css  js  c++  java
  • easyui datagrid 跨页选择

    首先,要加入idField属性

    其次,idField属性必须是数据集中某一字段,且唯一。

    然后,就象这样:

    $(document).ready(function () {
            $("#tt").datagrid({
                url: '/Control/ajax.ashx?class=DC.BusinessLogic.App.AppAction&method=GetPrint',
                rownumbers: true,
                pagination: true,
                idField:'productid',
                height: $(document).height() - 100,
                 $(document).width(),
                columns: [[
                     { field: 'productid', title: '物料ID',  100, checkbox: true },
                     { field: 'productcode', title: '物料编码',  100 },
                     { field: 'productname', title: '物料名称',  200 },
                     { field: 'unitname', title: '单位名称',  100 },
                     { field: 'brandname', title: '品牌名称',  100 },
                     { field: 'spec', title: '规格',  100 },
                     { field: 'differenceno', title: '助记码',  100 },
                     { field: 'scalerrate', title: '换算率',  100, hidden: true }
                ]]
            });
        })
  • 相关阅读:
    selenium + python网页自动化测试环境搭建
    工作总结
    脚本测试总结
    一些知识
    反相器
    递归算法设计
    什么是递归
    CSS3弹性盒模型布局模块
    小方法
    第24章 最佳实践
  • 原文地址:https://www.cnblogs.com/wpcnblog/p/5145701.html
Copyright © 2011-2022 走看看