function InitTable(queryParams) {
$('#dgFileEntity').datagrid({
url: '/Plan/GetYG_CHWInfoList',
queryParams: queryParams,
//view: detailview,
loadMsg: '数据加载中,请稍后。。。。',
height: SetGridHeightSub(39),
fitColumns: true,
sortName: 'Id',
sortOrder: 'desc',
idField: 'Id',
pageSize: 10,
pageList: [10, 20, 30, 40, 50],
pagination: true,
striped: true, //奇偶行是否区分
singleSelect: true,//单选模式
//rownumbers: true,//行号
columns: [[
{ field:'partsimage', title: '图片', width:80,sortable: true }
]]
});
}
<table id="List"></table>
界面 毫无反应
http://www.jeasyui.com/documentation/index.php#
看filebox。
grid不就是上传完毕后调用grid的api方法appendRow添加到grid去就行了
appendRow row Append a new row. The new row will be added to the last position:
$('#dg').datagrid('appendRow',{
name: 'new name',
age: 30,
note: 'some messages'
});