Welcome Guest Search | Active Topics | Sign In | Register

EO.Menu 3 levels (2 horizontal, 1 vertical) Options
João Araújo
Posted: Thursday, July 23, 2009 7:01:50 AM
Rank: Newbie
Groups: Member

Joined: 7/23/2009
Posts: 5
Hi,

I am new using essential objects.

My companny is evaluating the possibility to buy some controls from EO.

We were testing some of them and found some difficulties.

Using the menu from essencial objects we are not able to make a menu with 3 levels, in which level 1 and 2 are horizontal and the 3rd are vertical.
We found how to do it with a static menu but whem we do databind the first level is horizontal and the second and third levels are vertical.

Can any one help us?

Tk

João Araujo
eo_support
Posted: Thursday, July 23, 2009 7:17:57 AM
Rank: Administration
Groups: Administration

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

You can handle your menu's ItemDataBound event and then modify the menu item's Orientation inside that handler. It will be something like this:

Code: C#
private void Menu1_ItemDataBound(
    object sender, EO.Web.NavigationItemEventArgs e)
{
    if (e.MenuItem.Level == 0)
        e.MenuItem.SubMenu.Orientation = EO.Web.Orientation.Horizontal;
}


Thanks!
João Araújo
Posted: Thursday, July 23, 2009 9:38:06 AM
Rank: Newbie
Groups: Member

Joined: 7/23/2009
Posts: 5
Hi,

Thank you for your quick reply.
We are also evaluating the Grid. We are not finding an event handler itemDataBound.
It does not exist?

Could you please provide us examples in vb?

Is there an error or bug in the control Eo.Menu?
I was expecting not to do what you sugested
eo_support
Posted: Thursday, July 23, 2009 10:17:55 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
João Araújo wrote:
We are also evaluating the Grid.

Please post in a separate thread if you have any question for the Grid.


João Araújo wrote:
We are not finding an event handler itemDataBound.

The menu supports ItemDataBound event. You need to handle that event. This is as clear as we can tell you. If you do not know what this means, then you may want to ask somebody else around who knows more about generally .NET and ASP.NET programming to help you. Our support will not cover general programming questions.


João Araújo wrote:
Could you please provide us examples in vb?

Here is the VB version:
Code: Visual Basic.NET
Private Sub Menu1_ItemDataBound( _
    ByVal sender As Object, ByVal e As EO.Web.NavigationItemEventArgs) Handles Menu1.ItemDataBound
        If e.MenuItem.Level = 0 Then
            e.MenuItem.SubMenu.Orientation = EO.Web.Orientation.Horizontal
        End If
End Sub



João Araújo wrote:
Is there an error or bug in the control Eo.Menu? I was expecting not to do what you sugested

No. This is not a bug. What we provided should work for you. If you do not understand how to handle an event, you should ask somebody else to help you. Once you get the event correctly handled, it should work for you.

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.