Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要对网格列求和。但我不知道如何获取所有行,甚至没有选择一个。
只选我做,
(controller) var sum =0; var grid = this.getMyGrid().getSelectionModel.getSelection(); Ext.each(grid,function(item)){ sum += item.data.qty; }
但是我应该如何获取包含未选择行的网格数据呢?
谢谢!
this.myGrid().store.each(function() { ... })