Retrieve PropertyDropDownList Options

Vote:
 

Hi,

I want to use the PropertyDropDownList property to provide options for a search form. Is there a way to programmatically retrieve the name/values specified in admin mode so I can render them as a datasource to a checkboxlist for example?

 

Thanks a lot in advance

#58296
Apr 18, 2012 12:27
Vote:
 

This is the code used in the property control:

MultipleOptionsListSettings settings = (MultipleOptionsListSettings)PropertyData.GetSetting(typeof(MultipleOptionsListSettings));

(MultipleOptionsListSettings is defind in the namespace EPiServer.Web.PropertyControls.PropertySettings)

#58297
Apr 18, 2012 12:55
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.