Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    20
    Vote Rating
    0
    nstokoe is on a distinguished road

      0  

    Default Live GroupSummary Grid Collapse All Groups Does not always work

    Live GroupSummary Grid Collapse All Groups Does not always work


    At one point the collapseAllGroups method of the GroupSummaryView class worked but after some code updates it no longer works. I am not sure if this is related to the Beta3 updates or whether it has always not worked in certain situations. Here is my code:

    Code:
    public Widget asWidget() {
    
            colModel = new ColumnModel<Item>(this.getColList());
            store = new ListStore<Item>(props.key());    
            
            HtmlTemplate.MainPageLayout templates = GWT.create(HtmlTemplate.MainPageLayout.class);
            HtmlLayoutContainer htmlCon = new HtmlLayoutContainer(templates.getTemplate());
            innerHtmlCon = new HtmlLayoutContainer("<div class=\"gridHolder\"></div>");
            
            htmlCon.add(innerHtmlCon, new HtmlData(".pageContent"));
    
            return htmlCon;
        }
    
        public void setData(ArrayList<Item> data) {
            
            summary = new GroupSummaryView<Item>();
            summary.setForceFit(true);
            summary.setShowGroupedColumn(false);
            
            // Fill the list store with the data
            store.addAll(data);    
            // Set the sort info so that it sorts by lastIngestedTime
            store.addSortInfo(new StoreSortInfo<Item>(props.lastIngestedTime(), SortDir.DESC));
            store.applySort(true);
            
            grid = new Grid<Item>(
                    store, colModel);
            grid.setBorders(true);
            grid.setView(summary);
            grid.getView().setShowDirtyCells(false);
            grid.setHeight(CommonConstants.GRID_HEIGHT);
            
            StringFilter<Item> shortNameFilter = new StringFilter<Item>(props.productShortName());
            DateFilter<Item> lastIngestedFilter = new DateFilter<Item>(props.lastIngestedTime());
            DateFilter<Item> lastObservedFilter = new DateFilter<Item>(props.lastObsTime());
    
            filters = new GridFilters<Item>();
            filters.initPlugin(grid);
            filters.setLocal(true);
            filters.addFilter(shortNameFilter);
            filters.addFilter(lastIngestedFilter);
            filters.addFilter(lastObservedFilter);
            
            Scheduler.get().scheduleFinally(new ScheduledCommand() {
                @Override
                public void execute() {
                    summary.groupBy(datasource);
                }
            });
            
            summary.collapseAllGroups();
            
            innerHtmlCon.add(grid, new HtmlData(".gridHolder"));
    
        }
    Anyone else see this problem?

  2. #2
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Location
    Redwood City, California
    Posts
    402
    Vote Rating
    2
    WesleyMoy is on a distinguished road

      0  

    Default


    The code snippet you posted seems to be missing pieces. I can't find a definition of Item or getColList. Is this based on one of the existing examples?

    Also, please take a moment to test against the release candidate build and see if you still notice this issue.

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