Home - Forums-.NET - FlyTreeView (ASP.NET) - RunTime Dynamic or Databound Icons?

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

RunTime Dynamic or Databound Icons?
Link Posted: 15-Jan-2007 23:07
I hava a tree which retrieves its' nodes at runtime from an access database.  I need to set the node icon based on the type of information contained.  Is it possible to set an icon URL  in the database and then databind the FlyTree control node icon to this column?
Link Posted: 16-Jan-2007 08:07
Do you mean the FlyTreeView for ASP.NET 1.1 control or ASP.NET 2.0 version?
In both cases it seems to be possible, but using different implementations.
Link Posted: 19-Jan-2007 00:04
This is using ASP.NET v2
Link Posted: 19-Jan-2007 00:27
You may need to create a record at FlyTreeView.DataBindings to bind your column to FlyTreeNode.ImageUrl property.

Set the ImageUrlField property to a required name (your database column).

Also you can always set or modify treeview nodes created during the data binding process. Use the FlyTreeView.NodeDataBound event to achieve this.