Home - Forums-.NET - FlyTreeView (ASP.NET) - [SOLVED] DEPopulateOnDemand

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

[SOLVED] DEPopulateOnDemand
Link Posted: 07-Feb-2007 00:03
I am looking for a treeview control that will not only allow me to populate nodes programmaticaly without page postback, but also gives me the ability to de-populate nodes in the same manner.

To illustrate my point, here is the expected behaviour:

1. A user clicks a node
2. The node's content (it's children) get populated without page postack and programmatically in the asp.net page's code behind
3. The user collapses the node he just expanded
4. The next time the user expands this node again, it shall be populated again.

This is a must in the application I am programming, since the contents of a expanded node may change during the time a user has it expanded.

Alternatively a context menu that lets the user refresh a node, or a 'simple' clearing of a node's child nodes upon collapsing (without page roundtrip) would do as well.

Is FlyTreeView capapble of this?

Thanks in advance for your time.
Link Posted: 07-Feb-2007 00:18
Took a few minutes to look at some code and then stumbled over the following post: http://www.9rays.net/forums/viewtopic.php?t=1102&highlight=refresh+node which seems to answer my question.
Link Posted: 07-Feb-2007 04:26
Do you use the FlyTreeView for ASP.NET 1.1? Or FlyTreeView for ASP.NET 2.0 control?

They have different implementation for your request.

Here is the correct topic for FlyTreeView for ASP.NET 1.1 control:
http://www.9rays.net/forums/viewtopic.php?t=857&highlight=onbeforecollapse
Link Posted: 11-Feb-2007 20:46
[quote="EvgenyT"]Do you use the FlyTreeView for ASP.NET 1.1? Or FlyTreeView for ASP.NET 2.0 control?

They have different implementation for your request.

Here is the correct topic for FlyTreeView for ASP.NET 1.1 control:
http://www.9rays.net/forums/viewtopic.php?t=857&highlight=onbeforecollapse


Thanks for your reply Evgeny,

I am using FlyTreeView for ASP.NET 2.0. I found the code posted in http://www.9rays.net/forums/viewtopic.php?t=1102&highlight=refresh+node to work properly. Yet, it's quite possible there is a better way to do it. If so, I'd be thankful for any pushing into the right direction.
Link Posted: 11-Feb-2007 22:35
Actually both topics use the same code.
Link Posted: 12-Feb-2007 02:29
Again, thanks for the excellent support