Rank: Newbie Groups: Member
Joined: 1/25/2008 Posts: 9
|
Hi, I am building a menu, in which the user can select which menu items he/she wants to see. I am using a databound SlideMenu, with checkbox template items, and I need to get whether the checkbox is checked. I can get the text property of the menu elements, but the following code always returns false:
For Each menuElem As EO.Web.MenuItem In SlideMenu1.Items If menuElem.Checked Then test = test + 1 End If If menuElem.Selected Then test = test + 1 End If Next
I've tried many other properties, of the EO.Web.MenuItem object, and even of the SlideMenu object as well, but still no solution. Sry if this is an easy question, but this is only my 3rd workday, and I'm wasting hours on this problem:)
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
The CheckBox itself is a child control of the CustomItem object created based on TemplateItem. So it's a lot more complicated. You will need to use the menu item's CustomItemInstance to get the CustomItem object first, then use FindControl to find the CheckBox. The help file explained how to use CustomItem in great detail.
Thanks
|
Rank: Newbie Groups: Member
Joined: 1/25/2008 Posts: 9
|
Thanks, a lot, all works fine now.
|