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.
我有一个带有数据的网格面板,我可以显示网格中的记录总数store.getcount()。当我单击一条记录时,我想显示所选记录的编号。
store.getcount()
例如:
grid.getSelectionModel().getCount()
在您的网格选择侦听器中尝试此操作:
listeners:{ select: function(selModel, record, index, options) { your_textfield.setValue(index+'/'+Ext.getCmp('yourGridId').store.getCount()); } }