ControlsHelper FillListControlWithEnum Method (ListControl, Type, String, Boolean, Boolean, List String )Kentico 8.0 API Reference
Fills the specified OnlineListControl with the items created from the specified enum type.

Namespace: CMS.ExtendedControls
Assembly: CMS.ExtendedControls (in CMS.ExtendedControls.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

control
Type: OnlineSystem.Web.UI.WebControls ListControl
List control
enumType
Type: OnlineSystem Type
Enum type
resourcePrefix (Optional)
Type: OnlineSystem String
The resource prefix used for the item text localization. Defaults to null.
sort (Optional)
Type: OnlineSystem Boolean
Indicates whether the items should be sorted. If true, the items are sorted by the item text after localization, otherwise the order of items corresponds to the enum declaration. Defaults to false.
useStringRepresentation (Optional)
Type: OnlineSystem Boolean
Indicates if string representation specified by the EnumStringRepresentationAttribute attribute will be used for the item value. Defaults to false.
excludedValues (Optional)
Type: OnlineSystem.Collections.Generic List OnlineString 
Exclude values from enumeration
Remarks

Takes the EnumStringRepresentationAttribute into account when working with the enum values.
See Also