$(document).ready(function() {
$('#comboboxtree').tree({
/* 发送请求*/
url : 'comboboxtree?',
onLoadSuccess : function(node,data) {
var rootNode = $(this).tree('getRoot');
var children = $(this).tree('getChildren', rootNode.target);
/* 选中第一个子节点 */
$(this).tree("select", children[0].target);
/* 自己写的传参获取数据显示方法 */
showItemCode(children[0].id);
}
});
});
easyUI动态改变field的属性
var tt=$('#dg').datagrid('getColumnOption', 'name'); //通过列名获得此列name为field的名
tt.hidden=false;