Class PropertyCategoryControl
A web control that is used to present a user interface for a property deriving from PropertyCategory.
Inherited Members
Namespace: EPiServer.Web.PropertyControls
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public class PropertyCategoryControl : PropertyDataControl, IPropertyControl, INamingContainer, IRenderSettings
Constructors
PropertyCategoryControl()
Declaration
public PropertyCategoryControl()
Properties
AvailableCategory
Gets the available category list.
Declaration
protected CategoryList AvailableCategory { get; }
Property Value
Type | Description |
---|---|
CategoryList | The available category list. |
Category
Gets or sets the categories for this property.
Declaration
public CategoryList Category { get; set; }
Property Value
Type | Description |
---|---|
CategoryList | The categories for this property. |
EditControl
Gets or sets the control used to edit the property.
Declaration
protected InputCategoryTree EditControl { get; set; }
Property Value
Type | Description |
---|---|
InputCategoryTree | The control used to edit the property. |
PropertyCategory
Gets or sets the corresponding PropertyCategory.
Declaration
public PropertyCategory PropertyCategory { get; set; }
Property Value
Type | Description |
---|---|
PropertyCategory | The corresponding PropertyCategory. |
Methods
ApplyEditChanges()
Applies changes for the posted data to the page's properties when the RenderType property is set to Edit.
Declaration
public override void ApplyEditChanges()
Overrides
Remarks
This method is called from ApplyChanges() if the control does not have an adapter.
CreateDefaultControls()
Creates the default controls for the property. Used when the property is in view mode or in "on page edit" mode and the PropertyDataControl does not support on page editing. Only display available categories
Declaration
public override void CreateDefaultControls()
Overrides
CreateEditControls()
Creates an edit interface for the property.
Declaration
public override void CreateEditControls()
Overrides
SetEnableStateForChildControls(Control, Boolean)
Used to enable or disable input controls for any child controls.
Declaration
protected override void SetEnableStateForChildControls(Control control, bool enabled)
Parameters
Type | Name | Description |
---|---|---|
System.Web.UI.Control | control | The control. |
System.Boolean | enabled | If the child controls should be enabled or disabled. |