View Full Version : Problem with widget renedered Grid

30 Jan 2010, 10:19 PM
Hi all,

I am using GXT 2.0.1
Gwt 1.7
Browser:IE and Hosted Mode

i created a widget rendered grid. In my grid i had created some buttons in a column and once i clicked the button some action is performed.

Below is the GridCelrenderer i had used

GridCellRenderer<DisconnectNewConnectData> buttonRenderer = new GridCellRenderer<DisconnectNewConnectData>() {
private boolean init;
public Object render(final DisconnectNewConnectData model, String property, ColumnData config, final int rowIndex,
final int colIndex, ListStore<DisconnectNewConnectData> store, final Grid<DisconnectNewConnectData> grid) {

if (!init) {
init = true;
grid.addListener(Events.ColumnResize,new Listener<GridEvent<DisconnectNewConnectData>>() {

public void handleEvent(GridEvent<DisconnectNewConnectData> be) {

for (int i = 0; i < be.getGrid().getStore().getCount(); i++) {

if (be.getGrid().getView().getWidget(i, be.getColIndex()) != null
&& be.getGrid().getView().getWidget(i, be.getColIndex()) instanceof BoxComponent) {

((BoxComponent) be.getGrid().getView().getWidget(i, be.getColIndex())).setWidth(be.getWidth() - 10);


Button b = new Button((String) model.get(property), new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {

Info.display(model.getName(), "<ul><li>" + model.getSymbol() + "</li></ul>");
b.setWidth(grid.getColumnModel().getColumnWidth(colIndex) - 10);
b.setToolTip("Click for more Informations");

return b;
Now the issue is,Once i closed the grid page from the tab and again tried to open from the Navigation Pane the Buttons are not displaying. The column is lef blank. Remaining all is displaying .

This Problem appears in Hosted Mode and IE only .
In Firefox its running fine.

Can any one tell me what changes i have to make in Code.