datagrid 显示隐藏 工具栏按钮
2017-05-15 11:00
204 查看
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(); } } ] }); }
相关文章推荐
- Silverlight 通过点击按钮显示/隐藏DataGrid的RowDetail
- easyui datagrid里的toobar按钮隐藏、显示、禁用等方式的实现
- 这样控制DataGrid的单元格内内容自动隐藏,鼠标移上时显示全部
- [Visual Basic]VB源代码推荐: 动态的显示/隐藏start按钮
- 打开没有工具栏的IE,并显示DataGrid中相应数据!
- mdichildform子窗体显示如何自动隐藏主窗体的工具栏???
- ReportX技巧(11)隐藏打印预览窗口工具栏按钮
- 显示和隐藏DataGrid中的列
- 单击按钮显示隐藏子菜单
- 显示和隐藏 DataGrid中的列
- MDI里(工具栏)按钮的隐藏、移动和保存备份(xml),子窗体的调用
- 利用一个按钮控制DIV的显示与隐藏
- 怎么样根据所选择的条件隐藏和显示DataGrid中的列!
- DataGrid利用DataRelation显示主从表信息(可控制从表信息隐藏和显示).(DataGrid 嵌套)
- 用同一按钮控制DIV的显示/隐藏
- javascript:单击按钮显示/隐藏文本框
- F:在datagrid中 怎么实现 点击一行(多列)传一个id过去到第二页显示其具体内容,不用按钮、链接等?
- DataGrid基础,添加DropDownList,改变单击行的颜色,隐藏显示列
- 显示和隐藏DataGrid中的列
- 单击按钮显示新窗体,再按下新窗体隐藏功能的实现