ComboBox 在网格中的下拉宽度,在列表中选择时加宽? ExtJS 7.X

问题描述 投票:0回答:0

我在 Extjs 7.6 的网格中使用组合框。 下拉列表不会展开,因此列表中的单个项目显示在多行中。 有没有办法在不更改下拉列表本身的情况下将下拉列表更改为固定或动态宽度?

我使用的是 Sencha Architect,所以我在配置中搜索了解决方案。但我找不到任何东西:

  • growToLongestValue -> 默认情况下为真且不起作用

我的网格列代码:

xtype: 'gridcolumn',
flex: 1.75,
width: 200,
sortable: true,
dataIndex: 'status',
menuDisabled: true,
bind: {
    text: '{status}'
},
editor: {
    xtype: 'combobox',
    itemId: 'mycombobox2',
    editable: false,
    displayField: 'title',
    queryMode: 'local',
    store: 'StatiOfOrdersStore',
    valueField: 'id'
}

到目前为止我找到的唯一答案是对一个非常古老的问题的评论: https://stackoverflow.com/a/72280729/21182733 但是当我在 Sencha Architect 中添加一个 BasicEvent 时,没有 beforepickercreate 事件。

如您所知,我是 extjs/js 的新手。

extjs sencha-architect
© www.soinside.com 2019 - 2024. All rights reserved.