-
30 Apr 2012 7:08 AM #1
Grouping with startCollapsed doesn't allow to expand a group using its expand method
Grouping with startCollapsed doesn't allow to expand a group using its expand method
Hello ExtJS team,
Apologize for the lack of the details, but I hope the problem is obvious.
Please let me know if you need any more details.
Ext version tested:- Ext 4.1.0
- The expand method doesn't expand a group if the Grouping feature is configured with because it checksCode:
startCollapsed : true
which is initially undefined for all groups undepending on startCollapsed.Code:if (me.collapsedState[groupName])
to true for all groups.Code:me.collapsedState[groupName]
-
1 May 2012 7:34 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 434
I actually ran into this last week when creating expand all button but forgot about it.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
8 May 2012 3:19 AM #3Ext JS Premium Member
- Join Date
- Nov 2010
- Location
- Dillenburg, Hessen, Germany
- Posts
- 33
- Vote Rating
- 0
I also ran into this right now.
After a little testing i did a Ext.override that fixes the missing/wrong initialized collapsedState when startCollapsed is set.
Here is my code and it works fine so far in both cases manually expand by click and expand by calling expand.
Code:Ext.override(Ext.grid.feature.Grouping, { onGroupClick: function(view, rowElement, groupName, e) { var me = this; if (me.startCollapsed && !Ext.isBoolean(me.collapsedState[groupName])) me.collapsedState[groupName] = true; me.callParent(arguments); }, expand: function(groupName) { var me = this; if (me.startCollapsed && !Ext.isBoolean(me.collapsedState[groupName])) me.collapsedState[groupName] = true; me.callParent(arguments); } });
-
26 Aug 2012 9:23 PM #4
Hi Mitchell,
Please clarify is this still not fixed? I just can't see the bug id to check it quickly in the release notes.
Maybe are you able to post a link to the thread which this one duplicates?
-
26 Oct 2012 9:45 AM #5
-
29 Oct 2012 2:09 AM #6
This duplicates another bug already reported in our system:
EXTJSIV-6101


Reply With Quote