This duplicates another bug already reported in our system: EXTJS-6101
  1. #1
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    974
    Vote Rating
    110
    Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all

      0  

    Default 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
    Description:
    • The expand method doesn't expand a group if the Grouping feature is configured with
      Code:
      startCollapsed : true
      because it checks
      Code:
      if (me.collapsedState[groupName])
      which is initially undefined for all groups undepending on startCollapsed.
    I've worked around the problem calling the collapseAll initially which set up
    Code:
    me.collapsedState[groupName]
    to true for all groups.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Vote Rating
    827
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    I actually ran into this last week when creating expand all button but forgot about it.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Ext JS Premium Member skullbooks's Avatar
    Join Date
    Nov 2010
    Location
    Dillenburg, Hessen, Germany
    Posts
    35
    Vote Rating
    1
    skullbooks is on a distinguished road

      0  

    Default


    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);
    	}
    });

  4. #4
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    974
    Vote Rating
    110
    Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all

      0  

    Default


    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?

  5. #5

  6. #6
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    974
    Vote Rating
    110
    Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all

      0  

    Default


    Thank you, @watermark!

    I see it is unfixed yet.
    Ext.NET - ASP.NET for Ext JS
    MVC and WebForms
    Examples | Twitter

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."