0
|-Field quantity-|-Field quantity loss-|----Total------|
|-----2----------|-------4-------------|---total=2+4---|
|-----3----------|-------5-------------|---total=3+5---|
我可以通過ExtJS的功能使它?
總=場量+現場量損失
|-Field quantity-|-Field quantity loss-|----Total------|
|-----2----------|-------4-------------|---total=2+4---|
|-----3----------|-------5-------------|---total=3+5---|
我可以通過ExtJS的功能使它?
總=場量+現場量損失
是的,你必須使用網格getColumnModel方法。
grid.getColumnModel().setRenderer(2, function(value, metaData, record, rowIndex, colIndex, store) {
return record.get('quantity') + record.get('loss');
});
更多信息:http://dev.sencha.com/deploy/ext-3.3.1/docs/?class=Ext.grid.GridPanel和
http://dev.sencha.com/deploy/ext-3.3.1/docs/?class=Ext.grid.ColumnModel?class=Ext.grid.ColumnModel