zoukankan      html  css  js  c++  java
  • EasyUI的datagrid列属性添加超链接

     $("#dg").datagrid({
            url: "../Ajax/PurchaseAjax.ashx",
            queryParams://每次请求的参数
                {
                    cmd: 'purList',
                    strWhere: strWhere
                },
            fitColumns: true,
           
            pagination: true,   //允许分页
            rownumbers: true,   //行号
            singleSelect: true,//true只能选择一行
            nowrap: true,//如果为true,则在同一行中显示数据。设置为true可以提高加载性能。
            striped: true, //奇偶行是否区分
             //autoRowHeight:true,//定义设置行的高度,根据该行的内容。设置为false可以提高负载性能。
            pageSize: 50,       //设置默认每页20条记录
            checkOnSelect: true,
            collapsible:true,
            pageList: [10, 50, 100, 500, 1000],//可自定义每页显示多少条记录
            columns: [[
                 {
                     field: "pl_Id",
                     hidden: true

                 },
                 
            {
                field: "pl_Date",
                title: "单据日期",
                align: "center",
                "100"           
            },
             {
                 field: "pl_Code",
                 title: "单据编码",
                 align: "center",
                 "130",
                 formatter: function (value, rowDate,rowIndex) {
                     return "<a href='#'>" + rowDate.pl_Code+ "</a>";
                 }
             },
           
             {
                 field: "sup_Name",
                 title: "供应商",
                 align: "center",
                 "180"
             },
           
            {
                field: "pl_Memo",
                title: "备注",
                align: "center",
                "150"
            }
            ]],
        });

  • 相关阅读:
    方维P2P  二次开发
    Array 数组去重 总结10方法(7)
    PHP  OOP学习总结
    [转载]js:数组里面获取键名和键值
    Array对象的方法实现(6)----Array.prototype.indexOf(实现常规参数的功能)
    在Apache服务器上启用GZip压缩静态内容的方法
    PHP 程序授权验证开发思路
    【转】zend studio中ctrl+鼠标左键无法转到类或函数定义文件的解决方法
    公钥私钥,HTTPS,CA证书机构,单向和双向认证
    Array对象的方法实现(5)----Array.prototype.includes(实现常规参数的功能)
  • 原文地址:https://www.cnblogs.com/weimingxin/p/6847519.html
Copyright © 2011-2022 走看看