AI OnAI Off
The property is supposed to be public virtual string SelectedRoles { get; set; }
and you add this attribute to specify your custom property:
[PageTypeProperty(Type=typeof(PropertDropDownCheckList))]
read more on http://joelabrahamsson.com/developing-with-page-type-builder-inheritance-and-specifying-property-types/
Hi,
I created a custom property using the code : http://www.frederikvig.com/2010/05/episerver-custom-property-with-custom-settings/
like this
[PageTypeProperty(
Type = typeof(PropertyDropdownCheckList),
EditCaption = "Select Roles",
SortOrder = 23,
HelpText = "Selected label will be display on news items")]
public virtual PropertyDropdownCheckList SelectedRoles { get; set; }
when I am trying to access, selected items in the above dropdown. I am getting error - unable to cast system.string to Dropdownchecklist
any help would be appreciated !!