Hi all,
Do anyone know how to make a CheckboxListEditor which consists of an enum?
I have tried this approach, but with no checkboxes rendered:
[Group("Location")]
[Name("Lokationer")]
[Field("Locations", typeof(Dynamicweb.Content.Items.Editors.CheckboxListEditor<TaskLocations>))]
public IList<TaskLocations> Locations { get; set; }
public enum TaskLocations
{
None = 0,
Koebenhavn = 1,
RegionSjaelland = 2,
Bornholm = 3,
Fyn = 4,
Midtjylland = 5,
Nordjylland = 6,
Sydjylland = 7,
}
Best regards, Anders