abc_da
12 Oct 2011, 1:29 AM
Hi,
could you please tell me, how to get the currently(prevoiusly) selected item in GXT Grid from within BeforeSelect event handler?
I have tried both selectionModel.getSelectedItem(); and but they both return null by the time BeforeSelect event reaches my listener.
public void handleEvent(SelectionEvent<ModelData> se) {
final GridSelectionModel<ModelData> selectionModel = (GridSelectionModel<ModelData>) se.getSource();
final int newSelectedIndex = se.getIndex();
final ModelData oldSelectedItem = selectionModel.getSelectedItem();
}
could you please tell me, how to get the currently(prevoiusly) selected item in GXT Grid from within BeforeSelect event handler?
I have tried both selectionModel.getSelectedItem(); and but they both return null by the time BeforeSelect event reaches my listener.
public void handleEvent(SelectionEvent<ModelData> se) {
final GridSelectionModel<ModelData> selectionModel = (GridSelectionModel<ModelData>) se.getSource();
final int newSelectedIndex = se.getIndex();
final ModelData oldSelectedItem = selectionModel.getSelectedItem();
}