其在datagrid的 drawcell事件中给cellhtml赋 值如下:
mini.parse();
var grid = mini.get("datagrid1");
grid.load();
grid.on("drawcell", function(e) {
var record = e.record;
var column = e.column;
var field = e.field;
var value = e.value;
if (column.name == "operation") {
e.cellStyle = "text-align:center;";
e.cellHtml = "<a class='mini-button' iconCls='icon-edit' >修改</a>" +
"<a class='mini-button' iconCls='icon-remove' >删除</a>";
}
});