0
我使用Ext JS的V6.2电网,在我的申请,我有三列费,费率&金额在这里,我想第三列的所有值[金额] &概括up.please纠正我的代码,如果我错了,我已经搜索了文档和其他东西,它没有帮助。请解决问题。提前致谢。Ext Js Grid,如何获得特定列的所有行值和总和?
editor: {
xtype: 'textfield',
enableKeyEvents: true,
fieldCls: 'right-align',
listeners: {
element: 'el',
keyup: function(form, e, selModel, record, index, options){
var InputValue= document.getElementById(e.id).value;
var result = (productValue) * (InputValue)/100;
var selectedRecord = gridStore.getSelection()[0];
rowindex = gridStore.store.indexOf(selectedRecord);
var models = gridStore.getStore().getRange();
models[rowindex].set("amount", result);
TotalOtherCharge = $('.Amount-column-cell .x-grid-cell-inner').text();
alert(TotalOtherCharge);
}
}
},
我得到输出TotalOtherCharge
按照截图:
2.862.8614.322.885.722.862.865.728.5811.442.86我需要这些号码拆分&和它向上。