简体   繁体   English

ext js-可以将组合框放在GridPanel中吗? (不是EditorGrid)

[英]ext js - can you put an combobox in a GridPanel ? (not an EditorGrid)

HI, I have only seen documentation where you can put a combobox in an EditorGrid, but i am just looking for a simple solution, where my grid has a one column that is a comboBox, with basically a Yes/No option. 嗨,我只看过文档,可以在其中将combobox放在EditorGrid中,但是我只是在寻找一种简单的解决方案,其中我的网格只有一个列,即comboBox,基本上是Yes / No选项。 I just want to be able to access the Yes/No value when i dblclick a particular grid row. 我只希望能够在双击特定的网格行时访问“是/否”值。 can this be done without using a EditorGrid Panel?. 无需使用EditorGrid面板就可以完成此操作吗? if so, can point me to an example ? 如果是这样,可以给我举个例子吗? that would be greatly appreciated. 那将不胜感激。

Thanks! 谢谢!

You should be able to do this with some effort -- I don't have any code off hand for you, but plugging into the grid should be possible. 您应该可以轻松地做到这一点-我没有任何可用的代码,但是应该可以插入网格。 I would suggest that if you need a boolean value, you should go with a checkbox instead of a combo. 我建议,如果需要布尔值,则应使用复选框而不是组合键。 It's lighter weight and simpler to implement as a plugin to the grid. 它的重量更轻,并且更易于实现为网格插件。 See the last example on this page to see if that's something that might work for you. 请参阅此页面上的最后一个示例,以查看是否适合您。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM