Welcome Guest Search | Active Topics | Sign In | Register

Horizonal Sub Menu when DataBinding Options
Shannon
Posted: Monday, July 9, 2007 10:42:39 AM
Rank: Newbie
Groups: Member

Joined: 6/28/2007
Posts: 5
We decided to implement the EO menu in MOSS 2007. We were able to bind the control to the topSiteMap dataprovider. I attempted to make the sub menu horizontal but the Orientation doesn't seem to have an affect.

How can we get the submenus horizontal? I have pasted a sample of the code below for your review.

Thanks for your time,
Shannon




<eo:Menu ID="Menu1" runat="server" ControlSkinID="None" Width="300px" DataSourceID="topSiteMap" >
<LookItems>

<eo:MenuItem ItemID="_TopGroup">
<SubMenu Width="500" Orientation="Horizontal" Style-CssText="border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;font-size:Medium;"></SubMenu>
</eo:MenuItem>

</eo:Menu>
eo_support
Posted: Monday, July 9, 2007 11:09:21 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi Shannon,

Orientation is not copied from the look item. So you can set it directly on the menu:

Code: HTML/ASPX
<eo:Menu id="Menu1" runat="server" Width="300px">
    <TopGroup Orientation="Vertical">
    </TopGroup>
</eo:Menu>


Thanks
Shannon
Posted: Monday, July 9, 2007 12:02:16 PM
Rank: Newbie
Groups: Member

Joined: 6/28/2007
Posts: 5
I must be missing something. I can not get it to go horizontal. Is there a way I can email you a screen shots?
eo_support
Posted: Monday, July 9, 2007 12:09:58 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi Shannon,

A screenshot actually won't help us too much. A menu by default is Horizontal, so if it is rendered as Vertical, most likely you did something somewhere. :)

In order to find it out, you can create a blank page and then do:

Code: C#
Menu1.DataSource = new string[]{"abc", "def"};
Menu1.DataBind();


You should get a horizontal menu. Once you get that working, you can comparing with your code and look for the difference.

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.