PDA

View Full Version : Beta 1 - GridInlineEditing BeforeStartEditEvent never fires



dierp
29 Dec 2011, 2:25 PM
Looking at the source it seems that the event is created but never fired...

From GridInlineEditing.java


public void startEditing(final GridCell cell) {
ignoreBlur = false;
if (getEditableGrid() != null && getEditableGrid().isAttached() && cell != null) {
ColumnConfig<M, ?> c = getEditableGrid().getColumnModel().getColumn(cell.getCol());


M value = getEditableGrid().getStore().get(cell.getRow());
// editable
if (value != null && getEditor(c) != null) {
CancellableEvent ce = new BeforeStartEditEvent<M>(cell);
if (ce.isCancelled()) {
return;
}


cancelEditing();
ignoreScroll = true;
getEditableGrid().getView().ensureVisible(cell.getRow(), cell.getCol(), true);
Scheduler.get().scheduleDeferred(new ScheduledCommand() {


@Override
public void execute() {
doStartEditing(cell);
}
});


}
}


}

sven
29 Dec 2011, 11:02 PM
This is already fixed in SVN and will be in the next release