Welcome Guest Search | Active Topics | Sign In | Register

Menu separator using web.sitemap Options
twd
Posted: Friday, November 27, 2009 11:29:38 AM
Rank: Newbie
Groups: Member

Joined: 5/29/2009
Posts: 6
I am using the web.sitemap file (via the SiteMapDataSource), and need to insert a separator line in my menu.

My question is: what entry do I make in my web.sitemap file so that the menu control will insert a separator line?

Thank you!
eo_support
Posted: Friday, November 27, 2009 11:46:53 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You can handle the menu's ItemDataBound event. That event is called for every item created during data binding. You can then set the newly created item's IsSeparator to true based on whatever condition that you may have (for example, if "title" is set to "-").

Thanks!
twd
Posted: Friday, November 27, 2009 11:53:15 AM
Rank: Newbie
Groups: Member

Joined: 5/29/2009
Posts: 6
Worked perfectly. Thanks!!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.