1
votes

How to render the selected value of combo box in grid of ExtJs?

{
    header: 'value', 
    width: 150,
    dataIndex: 'roleType', 
    editor: {
        xtype: 'combobox',
        store: 'RoleStore',
        valueField: 'roleId',
        displayField: 'roleType',
    }   
} 
1

1 Answers

1
votes

If you're using ExtJS5+, you can use the widget column.

{
    xtype: 'widgetcolumn',
    header: 'value', 
    width: 150,
    dataIndex: 'roleType', 
    widget: {
        xtype: 'combobox',
        store: 'RoleStore',
        valueField: 'roleId',
        displayField: 'roleType',
    }
}

Example: https://fiddle.sencha.com/#fiddle/17tv