Class InputCategoryTree
Simple input control that displays a category selection.
Implements
Inherited Members
Namespace: EPiServer.Web.WebControls
Assembly: EPiServer.dll
Version: 9.12.2Syntax
public class InputCategoryTree : InputBase, INamingContainer
Constructors
InputCategoryTree()
Declaration
public InputCategoryTree()
Properties
Categories
Gets or sets a list of categories that the InputCategoryTree should render. If not set it will default to calling the GetList() method on the root category returned by GetRoot().
Declaration
public IList Categories { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.IList | The category selection that are available. |
EnableSelectability
Set to false if you want the control to render unselectable categories as selectable.
Declaration
public bool EnableSelectability { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
Default value is true.
EnableVisibility
Set to false if you want the control to render invisible categories.
Declaration
public bool EnableVisibility { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
Default value is true.
SelectedCategories
Gets or sets the selected categories.
Declaration
public CategoryList SelectedCategories { get; set; }
Property Value
Type | Description |
---|---|
CategoryList | A CategoryList containing the selected categories. |
Remarks
The setter stores a copy of the category list so that the original list is not modified.
Non existing category ids are removed from the category list before it's returned.
Methods
CreateChildControls()
Create and adds the category selection controls to the control collection.
Declaration
protected override void CreateChildControls()