Home - Forums-.NET - FlyTreeView (ASP.NET) - problem with client javascript finding the treeview

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

problem with client javascript finding the treeview
Link Posted: 15-Nov-2007 15:29
Hi.

First, this treeview is cool. Keep up the good work.

However, I've got a problem. I've got the web controls from Developer Express and I'm using their popup control to house the FlyTreeView (I know, it's going to be hard to determine where to look for the problem).

When I drop a FlyTreeView directly onto the page and use the static javascript CFlyTreeView.getInstanceById(\"ftvSecond\") everything works fine.

However, if I put a FlyTreeView inside their popup control and try to use the static function to retrieve the client instance I get the message:

\"_1 has no properties\"

Note that I'm debugging using Firebug inside Firefox.

Any suggestions?

Dave

P.S. I can send you a screenshot if you'd like...[/img][/list]
Link Posted: 15-Nov-2007 17:44
Dave,

Yes, please put a screenshot somewhere.
You can also put your code (for example to ftp://download.9rays.net/9r_incoming/), so we can run it locally.
Link Posted: 15-Nov-2007 18:15
I don't really have a place I can post images so I'm sending a zip file with a bunch of screens that I've taken.  I don't think sending the project will work unless you're interested in downloading some of the DevExpress controls.

Anyway there are screenshots of how I built it in VS and it running in Firefox.

Cheers,

Dave

P.S. The file I've uploaded is called FTVDaveHaas.zip
Link Posted: 16-Nov-2007 00:30
Dave,

We can use trial version of DvXpress control, you use.
But it will be much better if you put your test project somewhere.
So we can debug, and possibly create a workaround for this compatibility issue.

Thanks in advance.
Link Posted: 16-Nov-2007 10:42
I've put a project in the ftp directory called FlyTreeTestApp.zip

I think if you download the trial components from DevExpress (v7.3.3, the one just released) it should work.

Cheers,

Dave

BTW: In the project there are 2 flytreeview's. ftvInside is inside the popup and ftvOutside is defined at the page level.

Cheers,

Dave
Link Posted: 16-Nov-2007 12:55
Dave,

Thanks for the code.
In your case, you should rather use

CFlyTreeView.getInstanceById('ASPxPopupControl1_ftvInside')

Because you need client-side id of treeview (returned by FlyTreeView.ClientID property).


Anyway, getInstanceById should return null rather than raise errors. So this is to be fixed soon.

Thanks.
Link Posted: 16-Nov-2007 13:11
Update: fixed version, that returns null in the case is already available at Downloads.
Link Posted: 16-Nov-2007 13:20
That fixed it

Thank you very much.

Dave