Extjs - 如何在网格列中显示组合框 [英] Extjs - How to show combobox in Grid column
本文介绍了Extjs - 如何在网格列中显示组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个格子包括日期和组合列 此列类型将允许您将任意组件插入单元格。
即将推出的ExtJS将有一些称为Gadget Grid的功能,可以实现类似的功能。
I have a gridpanel include date and combo column http://jsfiddle.net/YjYqX/
But i don't want click to show my combo. I want show my combo without click, not hide inside cell like
and the same for date column like
I think chage to clicksToEdit: 0
but fail
plugins: [
Ext.create('Ext.grid.plugin.CellEditing', {
clicksToEdit: 1
})
]
How to do that, thanks
解决方案
The only way to achieve this in 4.2x or below is to use a custom component like Skirtle's comonent column http://skirtlesden.com/ux/component-column This column type will let you insert any arbitrary components into a cell.
Upcoming release of ExtJS will have something called Gadget Grid that will allow for similar functionality.
这篇关于Extjs - 如何在网格列中显示组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文