Results 1 to 3 of 3

Thread: [FIXED] [GXT 2.0-M2] RowUpdated Event doesn't contain anything

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Feb 2009
    Posts
    22
    Vote Rating
    0
      0  

    Default [FIXED] [GXT 2.0-M2] RowUpdated Event doesn't contain anything

    Hi everybody,

    I'm trying to get a column which has been updated but the GridEvent Object doesn't contain anything. Here is a code Example:

    Code:
    this.grid.getView().addListener(Events.RowUpdated, new Listener<GridEvent<ModelData>>() {
      public void handleEvent(GridEvent<ModelData> event) {
        System.out.println(event.getRowIndex());
        System.out.println(event.getModel());
      }
    });
    The results are -1 and null

  2. #2
    Ext User
    Join Date
    Feb 2009
    Posts
    22
    Vote Rating
    0
      0  

    Default

    There must be a problem concerning the refreshRow method in the GridView class. What I've done now is to override the refreshRow method which fires a custom event to get updated row. Here is the workaround:

    Code:
    public static final EventType ROW_UPDATED = new EventType();
        
    @Override
    protected void refreshRow(int row) {
      super.refreshRow(row);
    
      GridEvent<ModelData> event = new GridEvent<ModelData>(this.grid);
      event.setRowIndex(row);
      event.setModel(this.ds.getAt(row));
    
      Dispatcher.get().dispatch(GridView.ROW_UPDATED, event);
    }

  3. #3
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    131
      0  

    Default

    Fixed in SVN.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •