开发者

ExtJS: MultiSelect Combo in an EditorGrid

开发者 https://www.devze.com 2023-03-26 21:06 出处:网络
There are some nice ComboBoxes for forms (f.e. the LovCombo or th开发者_C百科e SuperBoxSelect). I got a ComboBox working in a Grid. But how do I include a MultiSelect ComboBox in an Editor Grid? What

There are some nice ComboBoxes for forms (f.e. the LovCombo or th开发者_C百科e SuperBoxSelect).

I got a ComboBox working in a Grid. But how do I include a MultiSelect ComboBox in an Editor Grid? What is the best approach? Is there any existing code to get started?

Thanks!


Have you tried using the defined xtypes that the controls provide? If you look at the LovCombo for example, you'll see:

Ext.reg('lovcombo', Ext.ux.form.LovCombo);

Inside of your Grid, for each column, define the editor:

editor: {
    xtype: 'lovcombo'
    ...
}
0

精彩评论

暂无评论...
验证码 换一张
取 消