Welcome Guest Search | Active Topics | Sign In | Register

Access Checked properties of checkboxes in databound SlideMenu Options
K.Sz.
Posted: Friday, January 25, 2008 5:13:18 AM
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:)
eo_support
Posted: Friday, January 25, 2008 6:14:41 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,090
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
K.Sz.
Posted: Friday, January 25, 2008 7:25:37 AM
Rank: Newbie
Groups: Member

Joined: 1/25/2008
Posts: 9
Thanks, a lot, all works fine now.


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.