easyUi 中的datagrid 中的各种事件属性:
$("#dataGrid").datagird({
sortName: ' ',
sortOrder:'asc/desc',
columns:[[ {title:'标题',field:'muser_id',sortable:true,hidden:true},{},{} ]]
pagination:true, //开启分页
toolbar:[
{
id:'',
text:"名字",
iconCls:'icon-edit',
handler:function(){...}
},
{},
{}
],
rownumbers:true, //显示行号
onLoadSuccess: function(){...},
onDblClickRow:function(rowIndex,rowData){...rowData.id...},
onClickRow:function(rowIndex,rowData){...},
});
var param = {};
param.id = idname;
$("#dg").datagrid('load',param);
$('#grid').datagrid('loadData',{total:0,rows:[]});
$("#dg").datagrid('clearSelections');