单击组合框中树中的 [+] 时阻止组合框折叠 - extjs 3
I have implemented tree within combobox using idea from this thread
but when [+] or arrow on tree is clicked, the combobox collapses
Is there any way to stop this????????
Please help me....Thanks alot.......
Regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这里同样存在问题——我的解决方法是默认显示展开的树。
但这并不能解决箭头的问题......
基本上,当单击树时,组合框会看到“模糊”事件,从而折叠。
但我不知道如何防止这种情况。
顺便说一句,如果有人有一个完全工作的 ExtJS“组合框 + 树”解决方案,那将会非常有帮助。
因为 Sencha 论坛上提供的解决方案非常有限:
Same problem here -- my workaround is to show the tree expanded by default.
Yet that doesn't solve the issue with the arrows...
Basically the combobox sees a "blur" event when clicking on the tree and thus collapses.
But I don't know how to prevent that.
By the way, if someone had a fully working "combobox + tree" solution for ExtJS, that would be very helpful.
Because the solution provided on the Sencha forums is quite limited:
感谢 Pepijn 回答了我的问题。解决方案如下:
您可以使用树的 beforecollapsenode 和 beforeexpandnode 事件来查找它们是否被按下。请参阅下面的代码:
Thanks for Pepijn who answered my question. Here is the solution:
you can use the tree beforecollapsenode and beforeexpandnode events to find if they are pressed. See the code below: