I use id field twice, when I del one, I't ok.
(同一个字段我用了2次,我去掉其中一个就可以了)
columns: [[
{checkbox: true},
delete this "id" {field: 'id', title: 'ID', width: 20, align: 'center'},
{field: 'title', title: '标题', width: 250, align: 'center'},
{field: 'name', title: '标识', width: 150, align: 'center'},
{field: 'create_time', title: '创建时间', width: 100, align: 'center', sortable: true},
{field: 'update_time', title: '更新时间', width: 100, align: 'center', sortable: true},
or delete this id {field: 'id', title: '操作', width: 300, align: 'center',
formatter: function(value,row,index) {
//return '<span title="编辑" class="img-btn icon-edit" kid=' + value + '></span>';
return '<font color="red">编辑</font>';
}
And now how can use id field twice in one datagrid( ther first field and the last field)?
(我如何在第一个和最后一个字段都使用 id 这个 field呢?)