Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    addEditCompleteHandler is not getting fired

    Hi All,
    I don't know why but edit complete event is not getting fired.
    I'm using setAutoSaveEdits(false) because I don't want to call the server on each update.
    Code:
    final ListGrid listGrid = new ListGrid();
    		listGrid.setModalEditing(true);
    		listGrid.setCanHover(false);
    		listGrid.setLeaveScrollbarGap(false);
    		listGrid.setShowHeaderContextMenu(false);
    		listGrid.setEditByCell(true);
    		listGrid.setCanEdit(true);
    		listGrid.setAutoSaveEdits(false);
    		listGrid.setDataSource(mainDS);
    		listGrid.setHeight100();
    		listGrid.setWidth(100);
    		ListGridField fromField = createTimeField("start", "From", 40);
    		ListGridField toField = createTimeField("end", "To", 40);
    		listGrid.setFields(fromField, toField);
    		listGrid.addEditCompleteHandler(new EditCompleteHandler() {
                    ...
    Any ideas?

    Thanks
    ym
    Last edited by ym; 4 Dec 2010, 06:08.

    #2
    The editComplete event fires when data has been saved, and when autoSaveEdits is false data is not saved until an explicit call to saveAllEdits() has been made.

    Comment

    Working...
    X