ExtJS中的组合框

ExtJS中的组合框,extjs,Extjs,如何在ExtJs的网格中呈现组合框的选定值 { header: 'value', width: 150, dataIndex: 'roleType', editor: { xtype: 'combobox', store: 'RoleStore', valueField: 'roleId', displayField: 'roleType', } } 如果您使用的是ExtJS5+

如何在ExtJs的网格中呈现组合框的选定值

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

如果您使用的是ExtJS5+,那么可以使用


示例:

我正在使用ExtJS4。组合框不会呈现选定的值。
{
    xtype: 'widgetcolumn',
    header: 'value', 
    width: 150,
    dataIndex: 'roleType', 
    widget: {
        xtype: 'combobox',
        store: 'RoleStore',
        valueField: 'roleId',
        displayField: 'roleType',
    }
}