Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member SebTardif's Avatar
    Join Date
    Feb 2011
    Location
    Cambridge, MA
    Posts
    385
    Vote Rating
    8
    SebTardif is on a distinguished road

      0  

    Default [CLOSED][B2] Summary Grid Example not working when enabling buffered grid

    [CLOSED][B2] Summary Grid Example not working when enabling buffered grid


    [Beta 2] Summary Grid Example not working when enabling buffered grid.
    The symtom is that scrollbar show up but is disabled so no way to scrolldown.

    In other words, you cannot use summary grid functionality at the same time than having a fast buffered grid.

    This is how to setup the Summary Grid example to enable buffering:

    verticalScroller: {
    xtype:
    'paginggridscroller',
    activePrefetch:
    false
    },

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,828
    Vote Rating
    609
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    It's not possible to do so, it doesn't make sense logically.

    How can you get the summary for rows you haven't even loaded/rendered yet?
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Ext JS Premium Member SebTardif's Avatar
    Join Date
    Feb 2011
    Location
    Cambridge, MA
    Posts
    385
    Vote Rating
    8
    SebTardif is on a distinguished road

      0  

    Default


    This example have the data in the browser. Beside, Ext JS 4 has also an example where the summary is calculated on the server, so in both cases, I expect this to work with virtual scrolling.

    That the data is rendered or not is not relevant, calculation is unlikely done by retrieving DOM elements.

    Many others vendors of HTML widgets support this use case. Ed Spencer told me in a conference call and in the forum that Ext JS 4 compard to Ext JS 3.3 is expected to be able to use more than one feature in a grid at the same time, and we explicitly mentioned supporting grouping and virtual rendering at the same time, and even mention Beta 1 as the target to get this working.

    Please feel free to chat with Ed or Jacob Larsen.

  4. #4
    Ext JS Premium Member SebTardif's Avatar
    Join Date
    Feb 2011
    Location
    Cambridge, MA
    Posts
    385
    Vote Rating
    8
    SebTardif is on a distinguished road

      0  

    Default


    @evant said: How can you get the summary for rows you haven't even loaded/rendered yet

    Again, it would be a very strange design if the code would iterate the DOM to get the summary instead of the very good model Ext JS has.

    Everywhere I look Ext JS is iterating the model/store instead of the DOM. The store has the responsability to find the info where ever it is, already in the client or remote.

    Extract from Ext JS 4 Beta 3 code:

    Code:
      /**
         * Generates all of the summary data to be used when processing the template
         * @private
         * @return {Object} The summary data
         */
        generateSummaryData: function(){
            var me = this,
                data = {},
                remoteData = {},
                store = me.view.store,
                groupField = this.getGroupField(),
                reader = store.proxy.reader,
                groups = me.summaryGroups,
                columns = me.view.headerCt.getColumnsForTpl(),
                i,
                length,
                fieldData,
                root,
                key,
                comp;
                
            for (i = 0, length = groups.length; i < length; ++i) {
                data[groups[i].name] = {};
            }
            
        /**
         * @cfg {String} remoteRoot.  The name of the property
         * which contains the Array of summary objects.  Defaults to <tt>undefined</tt>.
         * It allows to use server-side calculated summaries.
         */
            if (me.remoteRoot && reader.rawData) {
                // reset reader root and rebuild extractors to extract summaries data
                root = reader.root;
                reader.root = me.remoteRoot;
                reader.buildExtractors(true);
                Ext.Array.each(reader.getRoot(reader.rawData), function(value) {
                     data[value[groupField]] = value;
                     data[value[groupField]]._remote = true;
                });
                // restore initial reader configuration
                reader.root = root;
                reader.buildExtractors(true);
            }
            
            for (i = 0, length = columns.length; i < length; ++i) {
                comp = Ext.getCmp(columns[i].id);
                fieldData = me.getSummary(store, comp.summaryType, comp.dataIndex, true);
                
                for (key in fieldData) {
                    if (fieldData.hasOwnProperty(key)) {
                        if (!data[key]._remote) {
                            data[key][comp.dataIndex] = fieldData[key];
                        }
                    }
                }
            }
            return data;
        }

  5. #5
    Sencha User
    Join Date
    Aug 2007
    Posts
    64
    Vote Rating
    0
    jelt is on a distinguished road

      0  

    Default


    Why the thread is closed ?

Similar Threads

  1. Replies: 3
    Last Post: 2 Feb 2010, 9:18 PM
  2. Replies: 7
    Last Post: 24 Jun 2009, 4:14 AM
  3. [CLOSED] 2.0 M3 (editable) buffered grid bugs
    By kht in forum Ext GWT: Bugs (2.x)
    Replies: 6
    Last Post: 14 Jun 2009, 6:20 AM
  4. Replies: 3
    Last Post: 4 Jun 2009, 8:18 PM
  5. Grid summary is not working row wise.......
    By ajax&me in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 22 Jan 2008, 11:02 PM

Thread Participants: 2

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