|
Rank: Member Groups: Member
Joined: 8/17/2007 Posts: 11
|
Within an event handle, I have:
Dim myItem as MenuItem myItem = e.NavigationItem
I tried myItem.expanded = false or = 0 or 1
Can you indicate how to make the menuitem collapse in vb?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Are you using SlideMenu or Menu?
|
|
Rank: Member Groups: Member
Joined: 8/17/2007 Posts: 11
|
slidemenu. sorry should have mentioned that before.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Try to do:
myItem.Selected = True
Thanks
|
|
Rank: Member Groups: Member
Joined: 8/17/2007 Posts: 11
|
Well I've tried the following:
if myItem.Selected = false then myItem.expanded = false end if
or
if myItem.Selected = 0 then myItem.expanded = false end if
Neither has any affect yet in the Help, Navigation Item States, the Selected property is boolean.
The help also mentions SelectedExpanded, but if I try this I get the error: 'SelectedExpanded' is not a member of 'EO.Web.MenuItem' yet the variable declared is:
Dim myItem as MenuItem myItem = e.NavigationItem
|
|
Rank: Member Groups: Member
Joined: 8/17/2007 Posts: 11
|
Got it sorted. The simplest of mistakes by forgetting to have a RaisesServerEvent="true" included.
Now myItem.expanded = true works.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Cool! Thanks for letting us know!
|
|