关于easyUI datagrid前几列冻结的问题的记录

$('#staffInfo_table').datagrid({
                        url : '/pc/militiaStaffInfo/getList.htm',
//                        nowrap : false,
                        striped : true,
                        idField : 'employee_id',
                        fit : true,
//                        fitColumns : true,
                        method : 'POST',
                        pagination : true,
                        rownumbers : true,
                        remoteFilter : true,
                        loadMsg : '数据载入中,请稍等...',
                        frozenColumns:[[
                                        {  
                                            field:"employee_id",
                                            align:"center",
                                            checkbox: true,
                                            width:100
                                        },  
                                        {  
                                            title:data[0].title,  
                                            field:"employee_code",
                                            align:"center",  
                                            sortable:true,
                                            width:100
                                        },{  
                                            title:data[1].title,  
                                            field:"employee_name",  
                                            align:"center",  
                                            sortable:true,
                                            width:100
                                        },{  
                                            title:data[2].title,  
                                            field:"mobile",  
                                            align:"center",  
                                            sortable:true,
                                            width:100
                                        },{  
                                            title:data[3].title,  
                                            field:"department_name",  
                                            align:"center",  
                                            sortable:true,
                                            width:100
                                        },{  
                                            title:data[4].title,  
                                            field:"picture",  
                                            align:"center",
                                            width:100,
                                            formatter : function(value) {
                                                if (value == null || value == "") {
                                                    return "";
                                                } else {
                                                    return "<div><a href=\'javascript:StaffInfo.photo(\""
                                                            + value
                                                            + "\")\'><font color='blue'>查看</font></a></div>";
                                                }
                                            }
                                        }]],
                                        columns:arr,
                        toolbar : '#toolBar',
                    });

 frozenColumns在使用这个属性时遇到的问题:不能在这个属性后面直接写一个含有对象column的数组,写成上面的形式。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值