TreeView Control and Custom SiteMapProvider

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have written a custom SiteMapProvider to retrieve site map data from a SQL
Server database table. It works fine when used as the data source for a Menu
control, so I am confident that all the nodes are being correctly populated.
However, when used with a TreeView control, only the first node displays. Any
suggestions on why this might be the case?

Thanks.

Dan
 
There are properties on both the Treeview and SiteMapProvider objects that
can alter how many levels are displayed from the Site Map. I suggest you
double check all the properties on both of those to make sure you haven't
accidentally misconfigured something.
 
Turns out that the answer was that I needed to declare <DataBindings> for the
TreeView.

--Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top