asked
2014-08-26 13:23:42 +0800
adamian 15 ● 4 Hello everyone,
After I'm replacing the grid model (grid.setModel(newModel)) I'm calling wireEventListeners(grid, this) but I don't seem to receive the new events. I've tried to debug it and it does seem to find the components in the wireEventListereners function, but after that I've got lost.
- Open zkfiddle zkfiddle.org/direct/1r52snl/4/v7.0.2-testGrid?run=1l3ur4p
- Double click row ("aaaa", "bbb" or "ccc")
- Click button "Change model"
- Double click one of the new rows ("111", "222", "333")
- I would have expected a new message box.
What am I not doing right?
Thanks and best regards,
Andrei
@Listen("onClick = #changeModel")
public void changeModel(Event e) throws InterruptedException {
myGrid.setModel(new ListModelList<String>(new String[]{"111", "222", "3333"}));
Selectors.wireEventListeners(myGrid, this);
//Selectors.wireEventListeners(myWindow, this);
}