PDA

View Full Version : Ext.tree.TreeNodeUI, what is the method to check whether a node is hidden?



jayghodasara
24 Jun 2009, 6:28 AM
Hi,

In Ext.tree.TreeNodeUI, they have hide() and show() method, but there is no method to check whether a node is hidden or not. So if I've a use case that if all childNodes for a node are hidden (They get hidden programmaticaly based on biz logic), I would like to hide the parent node as well. But I dont find any isHidden() or isVisible() method anywhere in the Tree hierarchy and hence I dont see how I can accomplish the use case I'm trying to achieve.

So to sum up I want to do this:
Check whether all childnodes are hidden using cascade and if it is the case, hide the parent node as well. Loop this process until it reaches the root.

Can someone please suggest some solution or approach of how can I satisfy the use case?

Thanks a lot in advance!!

new2ext
24 Jun 2009, 6:59 AM
Ext.tree.TreeNode has hidden property

jayghodasara
24 Jun 2009, 10:50 AM
Ext.tree.TreeNode has hidden property

Thanks a lot!! This property isnt mentioned in the api docs so it had me going round and round changing my biz logic behind this...