简体   繁体   English

使所有列编辑器在ExtJS网格中可见

[英]Make all column editors visible in an ExtJS Grid

I'm trying to figure out how, when I add a new row to my Grid, to make all column editors visible. 我试图弄清楚如何在向网格中添加新行时使所有列编辑器可见。

Right now, when I add a row to my Grid it's not inherently obvious that the new row is meant to be edited before saving. 现在,当我在网格中添加一行时,并不是天生就知道要在保存之前对新行进行编辑。

Any suggestions as to how to either accomplish making all column editors visible OR is there is a better way to make the new row obviously editable. 关于如何完成使所有列编辑器可见或如何使新行明显可编辑的任何建议。

EDIT: I found an acceptable solution. 编辑:我找到了可以接受的解决方案。 I have setup my grid so that, when I add a row, it does a getCount() -1 on the store and then calls startEditing(row, column). 我已经设置好网格,以便在我添加一行时,它在商店上执行getCount()-1,然后调用startEditing(row,column)。 This seems acceptable. 这似乎可以接受。

Give this plugin a shot: 试一下这个插件:

http://www.sencha.com/forum/showthread.php?79232-EditableGrid-Shows-editors-for-all-cells http://www.sencha.com/forum/showthread.php?79232-EditableGrid-Shows-editors-for-all-cells

Keep in mind that if you have a lot of rows, this will affect your performance. 请记住,如果您有很多行,这影响您的性能。

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

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