0

根据sencha 论坛上mitchellsimoens评论,我尝试在extjs 6.5.2 现代中实现无限滚动组合框。

问题是将combobox商店设置为 avirtual 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 现代中实现无限滚动组合框而不将默认选择器更改为网格?

4

1 回答 1

1

好的,这实际上有效:

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. 虚拟商店不适用于组合框。

于 2018-01-04T14:37:14.300 回答