• JQuery jqGrid中ColModel的参数大全


    ColModel 是jqGrid里最重要的一个属性,设置表格列的属性。
    用法:
    java 代码
    jQuery("#gridid").jqGrid({ 
    ... 
       colModel: [ {name:'name1', index:'index1'...}, {...}, ... ], 
    ... 
    });


     

    有一些参数当表格初始化完成后是不能被修改的:
         name
          width
          resizable
          label (method avail.)



    例子$("#grid1").xgrid({   
        url:{url:'../data/json-grid-standard.htm',pageSize:'10',currentPage:'1'},// 列表数据
        colModel:[{"display":"序号","width":"20","align":"center","sortable":"false","name":"xuhao"},
            {"display":"登陆ID","width":32,"align":"center","sortable":"true","name":"LOGIN_ID"},
            {"display":"姓名","width":32,"align":"center","sortable":"true","name":"XM"},
            {"display":"组织机构","width":32,"align":"left","sortable":"true","name":"ORG_ID"},
            {"display":"区域","width":32,"align":"center","sortable":"true","name":"REGION_ID"},
            {"display":"日期","width":32,"align":"center","sortable":"true","name":"DATE"},
            {"display":"是否删除","width":32,"align":"center","sortable":"true","name":"ISDEL","hide":"true"}
           ], //列表结构配置  
        title:'列表控件',
        searchitems:[
            {"display":"登陆ID","name":"LOGIN_ID"},
            {"display":"姓名","name":"XM"},
            {"display":"时间","name":"ORG_ID"},
            {"display":"日期","name":"DATE"},
            {"display":"区域代码","name":"REGION_DM"}
            ],//列表中搜索的条件项
        800,
        callback:function(){ alert('列表初始化完成后,执行回调') },
        searchMode:true  //搜索模式,初始化时不加载数据并隐藏列表
       
      });

  • 相关阅读:
    sql server 跨IP库更新表字段(OPENDATASOURCE 、update)
    sql server 开启一个事务
    ARMv8 汇编指令集查询
    开源操作系统项目
    Cmake使用教程交叉编译
    开源机器人项目
    网络通信协议之粘包问题
    开源图像处理计算机视觉
    开源机器学习项目
    C语言中的回调函数
  • 原文地址:https://www.cnblogs.com/jason819/p/3287103.html
Copyright © 2020-2023  润新知