GXT EditorGrid:逐个单元选择单元格编辑器类型
GXT EditorGrid 提供了一种为列设置编辑器类型的机制。
是否可以逐个单元地定义编辑器类型?
对于好奇的人:
我需要创建一个转置表;列变成行,行变成列。在这种情况下,一列(从普通表的角度来看)将具有各种编辑器类型,而行将具有相同的编辑器类型。
GXT EditorGrid provide a mechanism to set a type of editor for a column.
Is there anyway to define the editor type on a cell by cell basis?
For the curious minds:
I need to create a transposed table; the column become the row and the row is the column. That being the case, a column (from a normal table point of view) will have various editor type, whereby a row will have identical editor type.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
基本上,您必须处理 BeforeEdit 事件并设置编辑器。这是一个基类,您可以从中实现网格:
basically, you have to handle the BeforeEdit event and set the editor. Here is a base class from which you can implement your grid: