London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
Hi Vincent!
Selections in the drop down list property are stored in property settings. Use EPiServer.Web.PropertyControls.PropertySettings.MultipleOptionsListSettings to access them.
For example like this:
var setting = (MultipleOptionsListSettings)CurrentPage.Property["MyProp"].GetSetting(typeof(MultipleOptionsListSettings));
Then you can access the list options:
setting.ListOptions
/Klas
Hi I am having this problem and stucked this for few days. My problem is I am having a property use dropdown-list type, I want to display all the values stored in this type on the page. By using PageData.Property["xx"] I can only get the single value, not all of them.
Thanks