Try our conversational search powered by Generative AI!

Help needed: Example on how to use PropertyCheckBoxList in Dynamic Content

Vote:
 

Hi,

can someone please provide an example on how to use PropertyCheckBoxList in a Dynamic Content?

I'm trying something like:

[DynamicContentPlugIn]
public class MyDynamicContent : IDynamicContent
{
  public MyDynamicContent()
  {
     PropertyCheckBoxList propertyOptions = new PropertyCheckBoxList();
     
     MultipleOptionsListSettings settings = new MultipleOptionsListSettings();
     settings.ListOptions = new Dictionary<string, string>
                {
                    { "key1", "value1" },
                    { "key2", "value2" }
                };

     // how to connect propertyOptions and settings???

  
  }

}

    

 

using ILSpy I saw that this MultipleOptionsListSettings is where the UI control gets the values from, so somehow I should be able to connect my property with the setings...

I encountered also classes with majestic names such as PropertySettingsRepository, PropertySettingsContainer and PropertySettingsWrapper. I got a bit disappointed I didn't find a PropertySettingsRepositoryContainerFactoryWrapper but maybe I didn't search long enough. They probably are needed but I can't find any documentation on how to use them.

Any help will be greatly appreciated!

 

#67862
Mar 13, 2013 16:11
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.