Welcome Guest Search | Active Topics | Sign In | Register

How do you access a drop down list in a tool bar's customitem template from the code behind Options
Joan Darling
Posted: Tuesday, August 18, 2015 12:05:27 PM
Rank: Advanced Member
Groups: Member

Joined: 3/9/2010
Posts: 119
I'm trying to load a drop down list in a tool bar's custom item template in the page_init event but I can't find an example can you point me in the right direction?
eo_support
Posted: Tuesday, August 18, 2015 6:22:05 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

You would use something like this:

Code: C#
//Get the toolbar item
EO.Web.ToolBarItem item = toolbar1.Items[index];

//Get the control from the custom item template
Control control = item.CustomItemInstance.FindControl(drop_down_id);

//Now you can cast control to your specific control type


Hope this helps. Please feel free to let us know if you still have any more questions.

Thanks!


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.