zoukankan      html  css  js  c++  java
  • datagrid 显示隐藏 工具栏按钮

    
    

    function loadData(pars, url) {
    $('#data').datagrid({
    url: url,

    ........

    ........


    , onLoadSuccess: function (data) {
    if (comBoxName1 == "1" || comBoxName1=="2") { $('#btnID').hide(); } else { $('#btnID').show(); } } , toolbar: [ { text: '新增', id: 'btnID', name: 'add', iconCls: 'icon-add btn_menu', handler: function () { showAdd('@BaseRes.SPD_COL_013', comBoxName1); } }, '-', { text: '修改', id: 'edt', name: 'edt', iconCls: 'icon-edit', handler: function () { var selectRows = $('#data').datagrid('getSelected'); if (!selectRows) { $.messager.alert('@BaseRes.COM_CTL_NOTICE', "@BaseRes.MGC_CTL_031"); return; } Edit(selectRows.ID, "修改", true); } }, '-', { text: '删除', iconCls: 'icon-remove', handler: function () { DeletCombox(); } } ] }); }
  • 相关阅读:
    相关系数
    T检验
    Python模块常用的几种安装方式
    DOM与SAX读取XML方式的不同
    Base64编码
    node.js网页爬虫
    Node.js Express 框架
    Node.js Web 模块
    Node.js GET/POST请求
    Node.js 常用工具
  • 原文地址:https://www.cnblogs.com/lhlong/p/6855479.html
Copyright © 2011-2022 走看看