View Full Version : Grid: Bug when rendering >= 21 columns (w\Screenshots)

11 Feb 2007, 5:25 AM
Hello everybody,

I have a problem with the Grid Example that comes with YUI Ext.

All I did was extending the number of columns, so that the grid holds 22 columns. I am using the "array-grid" example for this.

If i do so, the 22nd column is not rendered correctly (see the screenshot) and the text for the 22nd column appears in the first column.

If I have 21 columns the rendering ist correct:

As soon as i add the 22nd column the rendering is broken and the stuff that should make up the 22nd column moves to the 1st one:

The code for this only consists of just adding the columns to the DefaultColumnModel and adding the content to the DefaultDataModel.

Has anybody a clue, what is wrong here and how can i make more than 21 columns render correctly? Is it a bug?

Thanks in advance for any thoughts on this.
Help is greatly appreciated.

12 Feb 2007, 6:56 AM
In this version, you need to define CSS rules for columns past 21:


The 1.0 release will remove this restriction.

12 Feb 2007, 10:38 AM
Thanks Animal, I will give those FAQs a good read.