码迷,mamicode.com
首页 > 其他好文 > 详细

easyUI的datagrid列属性添加超链接

时间:2017-05-12 23:14:38      阅读:1150      评论:0      收藏:0      [点我收藏+]

标签:bsp   style   ref   ble   orm   ase   显示   ashx   nowrap   

 $("#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",
            width: "100"           
        },
         {
             field: "pl_Code",
             title: "单据编码",
             align: "center",
             width: "130",
             formatter: function (value, rowDate,rowIndex) {
                 return "<a href=‘#‘>" + rowDate.pl_Code+ "</a>";
             }
         },
       
         {
             field: "sup_Name",
             title: "供应商",
             align: "center",
             width: "180"
         },
       
        {
            field: "pl_Memo",
            title: "备注",
            align: "center",
            width: "150"
        }
        ]],
    });

easyUI的datagrid列属性添加超链接

标签:bsp   style   ref   ble   orm   ase   显示   ashx   nowrap   

原文地址:http://www.cnblogs.com/weimingxin/p/6847519.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!