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
|
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
|