Extjs - 如何在Grid列中显示combobox [英] Extjs - How to show combobox in Grid column

查看:180
本文介绍了Extjs - 如何在Grid列中显示combobox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网格面板,包括日期和组合栏 此列类型可让您将任何任意组件插入单元格。



即将发布的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 - 如何在Grid列中显示combobox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆