If you're using PropertyDropDownList instead of PropertyAppSettings, you can get all the options with this code:
var settings = (MultipleOptionsListSettings)page.Property[propertyName].GetSetting(typeof(MultipleOptionsListSettings));
return settings.ListOptions;
Thanks Johan, but i was wondering if there is a method where you don't need an instance of the page.
I don't think there is a way to retrieve the settings without poperty data (which you get from the page data), because the settings can be global or in the page definition it self.
Maybe there is a way by loading the page definition, EPiServer.DataAbstraction.PageType.Load("Regular Page").
I don't think there is a way to retrieve the settings without poperty data (which you get from the page data), because the settings can be global or in the page definition it self.
Maybe there is a way by loading the page definition, EPiServer.DataAbstraction.PageType.Load("Regular Page").
Is there a method in the API where i can get all the values (keys and descriptions) from a PropertyAppSettings property?
right now i'm using something like below, but I think there must be something in the API to get the values