0
我需要在重新加載網格後爲rowClick選擇網格行和fireEvent。Extjs4,選擇網格行和fireEvent rowClick?
我試過這樣的,
var orderNo = 777;
// do reload grid
var gridLen = mygrid.store.getCount(); // it return 10
for (var i = 0; i < gridLen; i++) {
if (pickno == mygrid.store.getAt(i).get("orderNo").trim()) {
//mygrid.getSelectionModel().selectRow(i);
this.getOrderGrid().getSelectionModel().getSelection()[i];
mygrid.fireEvent('itemclick', mygrid, i, mygrid.store.getAt(i));
}
}
但是,這是行不通的。
任何人都知道如何選擇網格行,並運行fireEvent?
謝謝!