Home - Forums-.NET - FlyTreeView (ASP.NET) - Viewstate when part of a composite control

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

Viewstate when part of a composite control
Link Posted: 29-Nov-2005 06:17
I am using FlyTreeView in a composite control.  On my development box the composite control works perfectly in an application.  When I move the application to production, FlyTreeView is invisible.  All of the nodes are there (I can read them in code and they are set properly) but nothing shows on screen.  I suspect that there is a viewstate issue here and have tried everything I can think of but still no control.  I am also using the IE multipage control in another section of the composite control and it works fine everywhere.   Anything you can think of that I might have missed?

Thank you,


Dave
Link Posted: 29-Nov-2005 09:01
OK...I've tried using just one of the demos - Treeview not in a composite control but on it's own on a page.  There is nothing visible on the page, no FlyTreeView.  It does have all of its nodes but it just isn't visible.

I've checked the viewstate on the page and the control, it is true.  So is enabled and visible.

I would appreciate any help.  I've been beating my head against the wall on this one for two days!
Link Posted: 29-Nov-2005 10:44
Dave,

FlyTreeView has client runtime files, such as HTML component files and images. They're typically located at /aspnet_client/ninerays... virtual folder of your server. Probably this is the actual reason that FlyTreeView is not visible.
Link Posted: 30-Nov-2005 02:37
This is definitely the problem, thank you.  The issue now is, how do I state the virtual path for the control?  The actual directory is website\bin\client_runtime .  I've tried to set ClientRuntimePath to:

Request.Path.Substring(0,Request.Path.LastIndexOf("/")+1 )+"/bin/client_runtime/";

and

"~/bin/client_runtime/"

and

"website/bin/client_runtime/"  

but none of these work.
Link Posted: 30-Nov-2005 03:18
Evgeny,

I've tried everything I can think of and I'm pretty sure I've exhausted every possibility...

I went to my working version of the page and made these changes so that I could determine what the changes do.  In all cases, the change from the default to a new setting causes a blank control.

I've set ClientRuntimePath in OnInit, OnLoad, and in the client side .ASPX file as a control parameter.

I've used virtual, absolute, and physical paths.  I've tried verbose, "~", relative, and everything else.

Nothing seems to work.
Link Posted: 30-Nov-2005 03:48
Dave,
maybe it could help you (maybe not ;) ). I've put my flytreeview in a usercontrol in my project, and i had to include the client runtime in a folder of my project.
Here is how it's done :
+ WebSite
??+ UserControls
????+Flytreeviewfiles
??????+bin (ninerays dll)
??????+ninerays_web_ui_webcontrols_flytreeview (runtime path)
????????+iconsets
????????+images
????????. . .

In the references of my webapp, i've added the ninerays dll specificaly to my Flytreeviewfiles/bin directory
and in my usercontrol.ascx.cs file (containing the flytreeview control), in the page_load method :
FlyTreeView1.ClientRuntimePath = Page.Request.ApplicationPath + @"/UserControls/FlyTreeViewFiles/ninerays_web_ui_webcontrols_flytreeview";

Hope it helps!
Herv?
Link Posted: 30-Nov-2005 13:34
Sweet!!! Thanks you for all your help!