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()); } }