Combotreegrid中其它值获取

 1 <input type="text" name="superior" data-toggle="topjui-combotreegrid" 
 2     data-options="id:'superiorGrid', labelPosition:'top', idField:'c0', treeField:'c2',
 3     queryParams: { 'level': 4}, 
 4     onHidePanel: setInfo,
 5     url: contextPath + '/common/bdHandle.jsp?flags=query&pid=0',    
 6     xpandUrl: contextPath + '/common/bdHandle.jsp?flags=query&pid={c0}',
 7     columns:[[
 8         {field:'uuid',title:'UUID',hidden:true},
 9         {field: 'c2', title: '名称', width:300},
10         {field: 'c3', title: 代号', width:200},
11         {field: 'c0', title: '编码',hidden:true}
12     ]]">

在方法onHidePanel中进行处理,处理代码如下

function setArmyInfo(){
    var row = $("#superiorGrid").iCombotreegrid("grid").iDatagrid('getSelected');
    console.log(row);
}

可选择row域内的各项值

 

posted @ 2019-04-18 20:02  醉黑泥  阅读(587)  评论(0编辑  收藏  举报