Home - Forums-.NET - FlyTreeView (ASP.NET) - Context Menu not working with TreeView visible mode=false

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

Context Menu not working with TreeView visible mode=false
Link Posted: 23-Apr-2007 01:50
Dear All,
Currently I am working on sample application where  i have two treeview on my page. TreeView1 consists of Country data and Treeview2 will populate states for Treeview1 on click event. Treeview2 is initially make visible false. It gets visible true only when user clicks on Treeview1 click node event.

I want to attach context menu with Treeview2. Since Treeview2 is visible false, I am getting javascript error of \" \"Firstchild\" is null or not an object error\" .
The code perfectly work when Treeview2 is visible true on design times.

Please help in this situation.
Link Posted: 23-Apr-2007 03:07
We do not get any problems when just setting FlyTreeView.Visible to false.

Could you please create a small disconnected sample that we can run and debug locally? If yes, then post it here, or send zipped files to flytreeview.asp@9rays.net.
This is always the best way to solve such sort of problems.
Link Posted: 24-Apr-2007 05:16
Thank you for the code you sent by email.

Actually I do not have problems with your sample and tvAssetBrowser.Visibleis set to false.

So what I get is:





Without javascript errors.


Also. I'm using the latest 4.2.1 version.



Update:
Yes, the problem you're describing was fixed in 4.2.1. Probably you just need to download the latest build from:
http://www.9rays.net/download.aspx?productFamily=TreeView_ASP.NET_2