标签:blog http io ar for sp on 2014 log
rowformater方法可以扩展自定义列:
The cell formatter function, take three parameters:
value: the field value.
rowData: the row record data.
rowIndex: the row index.
Code example:
$(‘#dg‘).datagrid({ columns:[[ {field:‘userId‘,title:‘User‘, width:80, formatter: function(value,row,index){ if (row.user){ return row.user.name; } else { return value; } } } ]] });
标签:blog http io ar for sp on 2014 log
原文地址:http://www.cnblogs.com/kedarui/p/4067414.html