Welcome Guest Search | Active Topics | Sign In | Register

How to add a separator via code? Options
dan
Posted: Wednesday, November 4, 2009 2:49:29 PM
Rank: Newbie
Groups: Member

Joined: 11/4/2009
Posts: 4
Hello all!

I´d like to know How to add a separator via code?

thanks in advance,

Dan
eo_support
Posted: Wednesday, November 4, 2009 3:47:26 PM
Rank: Administration
Groups: Administration

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

You would add a new item but set that new item's IsSeparator to true. For example:

Code: C#
EO.Web.MenuItem item = new EO.Web.MenuItem();

//This change the item into a separator
item.IsSeparator = true;

Menu1.Items.Add(item);


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.