I am looking at creating an editable checkboxlist property for an item as indicated in the code below. The edit interface renders the checkboxlist but does not persist the selected checkbox items.
[Editable("Divisions", typeof(CheckBoxList), "SelectedValue", 85, DataBind = true, ContainerName = Tabs.Content)]
[EditorModifier("DataSource", new string[] { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5", "Item 6" })]
public virtual string[] Divisions
{
get { return (string[])(GetDetail("Divisions")); }
set { SetDetail("Divisions", value); }
}
Has anyone else tried to implement the above? If so, how did you achieve it?
Thank you for your time and support
Sean
Libardo answered this on the forum http://n2cms.codeplex.com/Thread/View.aspx?ThreadId=223192
Here is tutorial on dropdowns http://n2cmstutorial.blogspot.com/2010/08/creating-page-with-drop-down-list.html and it should not be too hard to implement checkbox list following these steps.