2016-03-29 11 views
1

ExtJsのグリッドでコンボボックスの選択した値をレンダリングする方法はありますか?ext jsのコンボボックス

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

答えて

1

ExtJS5 +を使用している場合は、widget columnを使用できます。

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

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

+0

私はExtJSに4を使用していますが、コンボボックスが選択された値をレンダリングしていません。 – Pratu

関連する問題