Home - Forums-.NET - FlyTreeView (ASP.NET) - FlyTreeView & SqlSitemap provider

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

FlyTreeView & SqlSitemap provider
Link Posted: 10-May-2007 14:14
I am just wondering is there any example that show me how to change the treeview structure using Sql SiteMap provider.

My current issue is that, I would like to load all the structure from sql site map provider into treeview, then re modify the node structure, e.g move node A under node B , or move Node C which contains child nodes Node D , Node E , under Node A, and be save to persist all of those changes back into database.

Could anyone show me how to do it. Or recommend me to use other component instead.
Thank you.
Link Posted: 11-May-2007 00:55
Do you actually mean the SiteMapDataSource control to be used with some SiteMapProvider implementation ?
It is a hierarchical data source control, and thus can be easily used as a data source for the FlyTreeView control (using the FlyTreeView.DataSourceID property) .

The second question is an ability to persist treeview data into some SiteMapProvider.

I think there's no built-in functionality in the treeview and the only way is to browse through treeview nodes recursively to save them somewhere.


Also, as far as I know, the SiteMapProvider is a read-only class, it means that there're no methods to persist some external data into it. AddNode(..) RemoveNode(..) are protected and not public.