extjs 6 具有无限滚动功能的现代组合框

extjs 6 modern combobox with infinite scrolling

根据 sencha 论坛上 mitchellsimoensthis 评论,我尝试在 extjs 6.5.2 modern[=26] 中实现无限滚动组合框=].

问题是将 combobox 商店设置为 virtual store 会产生此错误:Uncaught TypeError: a.setExtraKeys is not a function.

我还将 floatedPicker 设置为:

{
xtype: 'boundlist',
infinite: true,
// BoundListNavigationModel binds to input field
// Must only be enabled when list is visible
navigationModel: {
    disabled: true
},
scrollToTopOnRefresh: false,
loadingHeight: 70,
maxHeight: 300,
floated: true,
axisLock: true,
hideAnimation: null
}

有没有办法在不将默认选择器更改为网格的情况下在 extjs 6 modern 中实现无限滚动组合框?

好的,这确实有效:

floatedPicker: {
            xtype: 'boundlist',
            infinite: true,
            // BoundListNavigationModel binds to input field
            // Must only be enabled when list is visible
            navigationModel: {
                disabled: true
            },
            plugins: {
                listpaging: {
                    autoPaging: true,
                    loadMoreText: 'More records..',
                    noMoreRecordsText: 'No more records.'
                }
            },
            scrollToTopOnRefresh: false,
            loadingHeight: 70,
            maxHeight: 300,
            floated: true,
            axisLock: true,
            hideAnimation: null,
            variableHeights: true
        }

加载时有点丑,但可以。

我还使用了 Ext.data.store。虚拟商店不适用于组合框。