Extjs 无限网格仅1列问题

Extjs 无限网格仅1列问题,extjs,extjs4.2,Extjs,Extjs4.2,是JS提琴,我刚刚复制粘贴了ExtJS给出的示例,只保留了1列,而且也被锁定了。在这种情况下,我们有两个错误: 它不断地调用后端,直到得到最后一个结果。我们 可以在fiddler中检查呼叫是否已发送到后端 直到最后一页 我无法在网格中滚动(垂直) 这是ExtJS 4.2.1无限网格中的bug吗?有解决办法吗? 如果我们再添加一个未锁定的列,则其工作正常(它将只向后端发出一个请求,在滚动时,它将根据滚动条的位置发出下一个请求) 以下是相同的代码: Ext.onReady(function ()

是JS提琴,我刚刚复制粘贴了ExtJS给出的示例,只保留了1列,而且也被锁定了。在这种情况下,我们有两个错误:

  • 它不断地调用后端,直到得到最后一个结果。我们 可以在fiddler中检查呼叫是否已发送到后端 直到最后一页

  • 我无法在网格中滚动(垂直)
  • 这是ExtJS 4.2.1无限网格中的bug吗?有解决办法吗? 如果我们再添加一个未锁定的列,则其工作正常(它将只向后端发出一个请求,在滚动时,它将根据滚动条的位置发出下一个请求)

    以下是相同的代码:

    Ext.onReady(function () {
        Ext.define('ForumThread', {
            extend: 'Ext.data.Model',
            fields: [
                'title', 'forumtitle', 'forumid', 'username', {
                name: 'replycount',
                type: 'int'
            }, {
                name: 'lastpost',
                mapping: 'lastpost',
                type: 'date',
                dateFormat: 'timestamp'
            },
                'lastposter', ' ', 'threadid']
        });
    
        // create the Data Store
        var store = Ext.create('Ext.data.Store', {
            id: 'store',
            model: 'ForumThread',
            //remoteGroup: true,
            // allow the grid to interact with the paging scroller by buffering
            buffered: true,
            leadingBufferZone: 300,
            pageSize: 50,
            proxy: {
                // load using script tags for cross domain, if the data in on the same domain as
                // this page, an Ajax proxy would be better
                type: 'jsonp',
                url: 'http://www.sencha.com/forum/remote_topics/index.php',
                reader: {
                    root: 'topics',
                    totalProperty: 'totalCount'
                }
            },
            autoLoad: true,
            listeners: {
                // This particular service cannot sort on more than one field, so if grouped, disable sorting
                beforeprefetch: function (store, operation) {}
            }
        });
        var grid = Ext.create('Ext.grid.Panel', {
            width: 700,
            height: 500,
            collapsible: true,
            title: 'ExtJS.com - Browse Forums',
            store: store,
            loadMask: true,
            // grid columns
            columns: [{
                id: 'last',
                text: "Last Post",
                locked: true,
                dataIndex: 'lastpost',
                width: 130,
                renderer: Ext.util.Format.dateRenderer('n/j/Y g:i A'),
                sortable: true,
                groupable: false
            }],
            renderTo: Ext.getBody()
        });
    });