1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    12
    Vote Rating
    0
    RyanPays is on a distinguished road

      0  

    Default Expanding the first grouping of a grouped grid only

    Expanding the first grouping of a grouped grid only


    Hi,

    I have a requirement to expand the first grouping of a grouped grid when the grid is rendered.

    Using the config property startCollapsed i can obviously start all groups collapsed but was wondering how i can start with the first view expanded and all other collapsed only.

    I saw there is a private method for the grouping feature called expand which expects an ID, presumably of the grouping you want to expand.

    How do i access the ID of the group i want to expand? Is this even possible to achieve?
    I used the following code to determine that i need to pass an ID to the expand method:

    Code:
    var groups = Ext.data.StoreManager.lookup('Notifications').getGroups(),
          gridFeat = grid.features[0];
    
    gridFeat.expand(<--ID expected as JS error 'id' is null or not an object-->);
    I inspected the markup and the ID on the group body is gridview-1104-gp-Today ​but passing that into the method does not work either.

  2. #2
    Sencha Premium Member vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Chisinau, Moldova
    Posts
    642
    Vote Rating
    25
    vadimv will become famous soon enough vadimv will become famous soon enough

      0  

    Default


    that method, expand, should have as argument group name, not an ID, thus in your case I suppose is expand('Today'). You can look in the source code of the method and understand better how it works.

Thread Participants: 1

Tags for this Thread

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..." hd porno faketaxi