1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    7
    Vote Rating
    0
    sasadorian is on a distinguished road

      0  

    Default Unanswered: fire up completeEditHandler when a row is removed

    Unanswered: fire up completeEditHandler when a row is removed


    I have the following piece of code. It's working just fine. The only problem I have is when I remove a row in my grid, I would like refreshGridValues(event) to execute (right now it only happens when I save a row)

    Code:
        
    
    editing.addCompleteEditHandler(new CompleteEditHandler<Staff>() {
    @Override
    public void onCompleteEdit(CompleteEditEvent<Staff> event) {
    refreshGridValues(event);
    }
    });
    Now, Option B would be to eliminate the need for "event" variable in "refreshGridValues(...)". So any other way to construct the following lines w/out using event?

    Code:
    event.getSource().getEditableGrid().getView().getCell(i, j).getInnerText();
    event.getSource().getEditableGrid().getView().getCell(i, j).setInnerText(...);
    Please advise.
    Thanks in advance.

  2. #2
    Sencha User
    Join Date
    Oct 2012
    Posts
    7
    Vote Rating
    0
    sasadorian is on a distinguished road

      0  

    Default


    Got it.

    use:

    Code:
    editing.getEditableGrid().getView().getCell(i, j).setInnerText(...));
    where:

    Code:
    GridEditing<Staff> editing;

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar