Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Mar 2009
    Posts
    43
    Vote Rating
    0
    markmacumber is on a distinguished road

      0  

    Default [FIXED] Bug with BufferView and GridCellRenderer with Button

    [FIXED] Bug with BufferView and GridCellRenderer with Button


    Hi,

    - Detailed description of the problem:
    When using a BufferView on a Grid control that uses a GridCellRenderer which renders a Button, the BufferView does not render the buttons on the grid when you scroll.

    i.e. If the user has many rows in the table, all of which have a custom GridCellRenderer that renders a Button as the component in the Grid column, after scrolling down a bit, the column that contains the Button is blank.

    In fact, after inspecting the DOM using firebug, the grid column, is completely empty, not just 'not showing' or hidden.

    - GXT version: 2.0 final

    - Host mode / web mode / both: Both

    - Browser and version: Mozilla Firefox 3.0.11

    - Operating System: Linux Ubuntu 8.04

    - Sample code:

    Code used to generate the button in the column "Edit"
    Code:
    GridCellRenderer<BaseModel> buttonRenderer = new GridCellRenderer<BaseModel>() {
                public Object render(final BaseModel model, String property, ColumnData config, int rowIndex, int colIndex,
                        ListStore<BaseModel> store, Grid<BaseModel> grid) {
                    Button editAssociationButton = new Button("Edit");
                    return editAssociationButton;
                }  
            };
            
            ColumnConfig column = new ColumnConfig("edit", "Edit", 35);  
            column.setRenderer(buttonRenderer);  
            columnConfigs.add(column);
    Grid code that sets the BufferView:

    Code:
    BufferView bufferedView = new BufferView();
    bufferedView.setRowHeight(26);
    bufferedView.setScrollDelay(50);
    myGrid.setView(bufferedView);
    I hope that is enough information to go on with

    Cheers,
    Mark

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Fixed in SVN.

Thread Participants: 1