简体   繁体   English

如何在extjs中将网格面板添加到tree-grid的最后一个节点

[英]How to add grid panel to the last node of tree-grid in extjs

Can anybody suggest an approach to add grid panel to the last node/children of treepanel. 谁能建议将网格面板添加到treepanel的最后一个节点/子节点的方法。 I want to append gridpanel dynamically, for reference i am attaching a link. 我想动态附加gridpanel,以供参考,我正在附加一个链接。 Jsfiddle 的jsfiddle

I also require to hide the gridpanel in collapse of the treepanel 我还需要将GridPanel隐藏在TreePanel的折叠中

Simplest way is to remember your grid somewhere in your node component and then hide it on itemcollapse event. 最简单的方法是将网格记住在节点组件中的某个位置,然后在itemcollapse事件itemcollapse其隐藏。 Quick example based on your code https://fiddle.sencha.com/#fiddle/lnc 基于您的代码的快速示例https://fiddle.sencha.com/#fiddle/lnc

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

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