-
15 Sep 2010 3:56 AM #1
[FIXED]Columnmodel state restore fails if column defined as hidden:true
[FIXED]Columnmodel state restore fails if column defined as hidden:true
#
Code:
Ext version tested:- ext-3.3-beta2-7080
Adapter used:- ext
css used:- only default ext-all.css
Browser versions tested against:- FF3 (firebug 1.3.0.10 installed)
Operating System:- WinXP Pro
Description:- Columns state is not respected if you define the property by code
Test Case:
in the examples/grid/array-grid.js add hidden:true to any column
i think that it isnt necessary to post the entire code example...
Steps to reproduce the problem:- load example
show hidden column
reload page
the showed column is still hidden
The result that was expected:- the showed column must be visible even if its defined as hidden true, cos in state is defined as not hidden.
The result that occurs instead:- the column is stilll hidden
Possible fix:- this fix works for me
Ext.override(Ext.grid.ColumnModel,{
setState : function(col, state) {
Ext.apply(this.config[col], state);
// ORIGINAL applyIf --> Ext.applyIf(this.config[col], state);
}
});
-
15 Sep 2010 8:15 AM #2
Gnahhhhhhhh i just got bitten by this. 2 hrs down the drain...
Will try the fix tough.
Btw, i am on 3.2.2, didn't ever have that Problem in 3.2.1, seems like an regression!
-
15 Sep 2010 8:16 AM #3
Fix is working here too, thx a bunch man!
-
15 Sep 2010 9:12 PM #4
I came across this while working on another issue, then I just saw this thread! Thanks for the report, it's been resolved.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
GridPanel: Saving the state (sort/column/hidden/etc.), then loading that state???
By mvelasquez in forum Ext 3.x: Help & DiscussionReplies: 3Last Post: 19 May 2010, 11:02 AM -
[FIXED-302]Window restore fails without tool
By zombeerose in forum Ext 3.x: BugsReplies: 1Last Post: 15 Oct 2009, 10:18 PM -
[OPEN] [FIXED] GRID restore state bug
By aart.de.vries in forum Ext GWT: Bugs (2.x)Replies: 3Last Post: 16 Sep 2009, 4:39 AM -
[FIXED-211] FormLayout and trackLabels with a field with hidden:true still has labels
By stever in forum Ext 3.x: BugsReplies: 2Last Post: 1 Sep 2009, 1:38 AM


Reply With Quote