PDA

View Full Version : [FIXED] grid column count does not work in ext >=4.2.1



nblum
18 Nov 2013, 2:17 PM
I found a problem with the count of grid columns in ext 4.2.1 and 4.2.2

In the first example (ext version 4.2.0.663) i can add columns dynamically.
The grid.columns.length get the correct count (look at the column headers)
http://jsfiddle.net/nblum/u9RJM/3/

In the second example is exactly the same code only with version 4.2.1.883
the grid.column.length value is always one.
http://jsfiddle.net/nblum/u9RJM/1/

T (http://jsfiddle.net/nblum/u9RJM/1/)he Problem occurs only with dynamically added columns

any ideas how i can solve this issue in ext 4.2.2

Gary Schlosberg
18 Nov 2013, 2:44 PM
Thanks for the report! I have opened a bug in our bug tracker.

evant
18 Nov 2013, 3:03 PM
This is not a bug. columns is a configuration passed to the grid, it's not a documented property, nor is the collection ever maintained.

You can use:



grid.headerCt.getGridColumns();

nblum
19 Nov 2013, 12:48 AM
thanks, nice solution