Welcome Guest Search | Active Topics | Sign In | Register

collapse submenu vb Options
h0lly
Posted: Friday, August 31, 2007 4:59:51 PM
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?
eo_support
Posted: Friday, August 31, 2007 7:27:20 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Are you using SlideMenu or Menu?
h0lly
Posted: Saturday, September 1, 2007 5:14:56 AM
Rank: Member
Groups: Member

Joined: 8/17/2007
Posts: 11
slidemenu. sorry should have mentioned that before.
eo_support
Posted: Saturday, September 1, 2007 6:18:47 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Try to do:

myItem.Selected = True

Thanks
h0lly
Posted: Saturday, September 1, 2007 12:15:35 PM
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

h0lly
Posted: Saturday, September 1, 2007 12:50:26 PM
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.
eo_support
Posted: Saturday, September 1, 2007 12:55:05 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Cool! Thanks for letting us know!


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.