PDA

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



Integer
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:
http://img245.imageshack.us/my.php?image=nobugwhentableis21columqr1.jpg


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:
http://img50.imageshack.us/my.php?image=bugwhentablelargeras21cse0.jpg

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.

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

http://www.yui-ext.com/manual/faq#i_am_having_problems_when_i_load_multiple_grids_on_one_page._the_columns_don_t_display_correctly_or_all_overlap_in_column_1

The 1.0 release will remove this restriction.

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