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.
我在 Ext JS Grid 上有一个订单号。网格行按该订单号排序。我有一个按钮,可以打开一个从窗口向网格添加新行。我的问题是:如何从该网格中获得最大的订单号。然后在表单中获取它并为其添加 1。
我的猜测是,下一个数字是商店中的商品数量......grid.getStore().getCount()
grid.getStore().getCount()
或者如果你有一个分页的远程商店,它可以是grid.getStore().getTotalCount()
grid.getStore().getTotalCount()
也就是说,如果后端提供了一个总参数......