|
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
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
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!
|
|
Rank: Member Groups: Member
Joined: 4/15/2008 Posts: 11
|
Thank you so much; I will try it.
Angelle
|
|
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
|
|