编辑表格JS实现

提问 已结 3 11453
悬赏:20飞吻
var grid = {
type: 'edatagrid',
id: 'airplaneDataTable'
};
$("." + grid.id).iEdatagrid({
rownumbers: true,
fitColumns:true,
remoteFilter: true,
url: '${basePath}/sysDict/findDictInfoList',
saveUrl: '',
updateUrl: '',
destroyUrl: '',
onClickRow: function (index, row) {
selectFlight(row);
},
columns: [[
{field: 'id', title: 'ID', hidden: true},
{field: 'dict_code', title: '字典编码', sortable: false, width: 100,editor:"{type:'textbox',options:{required:true,height:30}}"},
{field: 'dict_value', title: '字典值', sortable: false, width: 100,editor:'text'},
{field: 'dict_seq', title: '排序', sortable: false, width: 60,editor:'text'},
{field: 'comments', title: '描述', sortable: false, width: 100,editor:'text'}
]],
toolbar: [{
iconCls: 'icon-edit',
text:'测试1',
handler: function(){alert('编辑按钮')}
},'-',{
iconCls: 'icon-help',
text:'测试2',
handler: function(){alert('帮助按钮')}
}]
});
如图toolbar出不来,不知道为什么
回帖
回帖须知