I need to sum of grid column. but I don't know how to get all the rows even not selected one.
我需要格子列的总和。但我不知道如何获得所有行甚至没有选择一行。
For only selected I do,
仅限我选择的,
(controller)
var sum =0;
var grid = this.getMyGrid().getSelectionModel.getSelection();
Ext.each(grid,function(item)){
sum += item.data.qty;
}
but How should I do to get grid data that include not selected row too?
但是我该如何获得包含未选择行的网格数据呢?
Thank you!
谢谢!
1 个解决方案
#1
1
this.myGrid().store.each(function() {
...
})
#1
1
this.myGrid().store.each(function() {
...
})