Hybrid View

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTGWT-2772 in 3.1 beta.
  1. #1
    Sencha Premium Member
    Join Date
    Oct 2010
    Posts
    128
    Vote Rating
    2
    audra is on a distinguished road

      1  

    Default No header appearance GridView constructor

    No header appearance GridView constructor


    GXT 3.0.2b

    The only way I have been able to assign a header appearance to a GridView is by overriding the initColumnHeader() in GridView. Please introduce a constructor, copy and pasting this much code for every different GridView header I have is painful, redundant, and hard to maintain.

    @Override
    protected void initColumnHeader() {
    header = new ColumnHeader<M>(grid, cm, new myColumnHeaderAppearance()) {


    @Override
    protected Menu getContextMenu(int column) {
    return createContextMenu(column);
    }


    @Override
    protected void onColumnSplitterMoved(int colIndex, int width) {
    super.onColumnSplitterMoved(colIndex, width);
    TaskManagerGridView.this.onColumnSplitterMoved(colIndex, width);
    }


    @Override
    protected void onHeaderClick(Event ce, int column) {
    super.onHeaderClick(ce, column);
    TaskManagerGridView.this.onHeaderClick(column);
    }


    @Override
    protected void onKeyDown(Event ce, int index) {
    ce.stopPropagation();
    // auto select on key down
    if (grid.getSelectionModel() instanceof CellSelectionModel<?>) {
    CellSelectionModel<?> csm = (CellSelectionModel<?>) grid.getSelectionModel();
    csm.selectCell(0, index);
    } else {
    grid.getSelectionModel().select(0, false);
    }
    }


    };

    header.setSplitterWidth(splitterWidth);
    header.setMinColumnWidth(grid.getMinColumnWidth());
    }

    Thanks,
    Audra

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,640
    Vote Rating
    80
    Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice

      0  

    Default


    This came to be a giant set of changes, but as part of a greater Grid appearance refactor it is complete - these changes are in SVN and will be in the nightly builds, and will be part of the 3.1 release.

Thread Participants: 1

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