@H_
502_0@1. add a formatter function to each cell of datagrid's layout
@H_
502_0@it will show a label like item.a + item.b after edit
formatter: function(item){
returnitem.a+ item.b;
}
@H_
502_0@2. Sometimes you want to show a label based on two properties of an row data,you can add get function to each cell
@H_
502_0@
@H_
502_0@ get: function(rowIndex,item){
@H_
502_0@ return item.a+ " " + item.b;
@H_
502_0@
@H_
502_0@ },