markmacumber
15 Jul 2009, 9:56 PM
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"
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:
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
- 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"
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:
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