Extjs - How to show combobox in Grid column

前端 未结 5 1426
难免孤独
难免孤独 2021-02-07 06:27

I have a gridpanel include date and combo column jsfiddle

But I don\'t want click to show my combo. I want show my combo without click, not hide inside

5条回答
  •  被撕碎了的回忆
    2021-02-07 07:13

    var grid = Ext.create('Ext.grid.Panel', {
        store: store,
        columns: [{
            header: 'Category',
            dataIndex: 'CategoryName',
            editor: {
                xtype: 'combobox',
                store: 'categoryStore',
                displayField: 'CategoryName',
                valueField: 'CategoryID'
            }
        }],
        width: 450,
        renderTo: Ext.getElementById('hede')
    });
    

提交回复
热议问题