PDA

View Full Version : [FIXED] Erorr on Header and sorting if no Header match



mitchellsimoens
8 Mar 2011, 8:39 AM
So say you have a GridPanel with Headers (I know, go figure!) and you have a Store with a sort on a field that isn't a Header. It will throw an error because the Header is undefined.

In the HeaderContainer.js file on line 122, hd will be undefined so line 123 will throw the error.

I don't think sorting and Headers should rely on each other. Easy fix would be to see if hd is undefined or not. If it's defined, then do the setSortState on the hd.

aconran
10 Mar 2011, 4:02 PM
Thanks for the report. This will be fixed in the next release.

The code is structured so that they don't rely on one another. This error was just because it sets the UI state (ascending or descending sort icon) based on the current store sorters state when it loads.