Welcome Guest Search | Active Topics | Sign In | Register

Slide Menu Options
Angelle Adlay
Posted: Monday, February 23, 2009 12:10:12 PM
Rank: Member
Groups: Member

Joined: 4/15/2008
Posts: 11
Hi,

I succeeded to link from Microsoft menu to an object on the same page (ie. label or Crystalviewer) using the following line of code:

If Menu1.SelectedItem.Text = "Test1" Then

What would be the property equivelant to SelectedItem in the EO.Slidemenu?

Thanks

Angelle
eo_support
Posted: Monday, February 23, 2009 12:35:54 PM
Rank: Administration
Groups: Administration

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

There is no equivalent to SelectedItem on slide menu. Since you are working with server side code (VB.NET), you can set the menu's RaisesServerEvent to true, then when user clicks a menu item, your server side event handler will be called. Inside that event handler you will be able to get which menu item was clicked from the second argument (the first argument is the Menu itself). That would be closest you can have.

Thanks!
Angelle Adlay
Posted: Monday, February 23, 2009 12:42:36 PM
Rank: Member
Groups: Member

Joined: 4/15/2008
Posts: 11
Thank you so much; I will try it.

Angelle
Angelle Adlay
Posted: Monday, February 23, 2009 2:37:13 PM
Rank: Member
Groups: Member

Joined: 4/15/2008
Posts: 11
Hi,

Thank you for the tip.

Setting Raisetheserverevent of menu items to true was the key. After that, in the menu_ItemClick event, I used e (NavigationItemEventArgs).

Please see sample code below.

Cheers

Angelle


Protected Sub SlideMenu1_ItemClick(ByVal sender As Object, ByVal e As EO.Web.NavigationItemEventArgs) Handles SlideMenu1.ItemClick

Select Case e.MenuItem.Value
Case Is = "First"
Page.Title = "Hello World"
Me.Label1.Text = "Hello World"
Case Is = "Second"
Page.Title = "Second"
Me.Label1.Text = "Second"
End Select
End Sub


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.