Class PropertyDataCollectionControl

Used to render forms for PropertyDataCollection.

Inheritance
System.Object
PropertyDataCollectionControl
Implements
System.Web.UI.INamingContainer
Namespace: EPiServer.Web.WebControls
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public class PropertyDataCollectionControl : HtmlTable, INamingContainer

Constructors

PropertyDataCollectionControl()

Declaration
public PropertyDataCollectionControl()

Properties

CaptionTemplate

Template used for rendering property labels

Declaration
public ITemplate CaptionTemplate { get; set; }
Property Value
Type Description
System.Web.UI.ITemplate

The caption template.

Collection

The collection to render.

Declaration
public virtual PropertyDataCollection Collection { get; set; }
Property Value
Type Description
PropertyDataCollection

The data.

Controls

Gets a System.Web.UI.ControlCollection object that represents the child controls for a specified server control in the UI hierarchy.

Declaration
public override ControlCollection Controls { get; }
Property Value
Type Description
System.Web.UI.ControlCollection

The collection of child controls for the specified server control.

DisableNonLanguageSpecific

Gets or sets a value indicating whether non language specific fields should be disabled.

Declaration
public bool DisableNonLanguageSpecific { get; set; }
Property Value
Type Description
System.Boolean

true if non language specific fields should be disabled; otherwise, false.

MasterLanguageName

Gets or sets the name of the master language.

Declaration
public string MasterLanguageName { get; set; }
Property Value
Type Description
System.String

The name of the master language.

RenderDynamicProperties

If dynamic properties in Collection should be rendered.

Declaration
public bool RenderDynamicProperties { get; set; }
Property Value
Type Description
System.Boolean

true if dynamic properties should be rendered; otherwise, false.

ShowLanguageIndication

Gets or sets a value indicating whether [show language indication].

Declaration
public bool ShowLanguageIndication { get; set; }
Property Value
Type Description
System.Boolean

true if [show language indication]; otherwise, false.

Methods

CreateChildControls()

Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.

Declaration
protected override void CreateChildControls()

CreatePropertyCollectionTable()

Creates a System.Web.UI.HtmlControls.HtmlTable with the contents of Collection.

Declaration
protected virtual void CreatePropertyCollectionTable()
Remarks

If Collection is empty it will return null.

DataBind()

Binds a data source to the invoked server control and all its child controls.

Declaration
public override void DataBind()

SetupPropertyControl(PropertyData)

Adds an IPropertyControl that handles the edit user interface for the given property.

Declaration
protected virtual IPropertyControl SetupPropertyControl(PropertyData property)
Parameters
Type Name Description
PropertyData property

The property that the user interface should handle.

Returns
Type Description
IPropertyControl

SetupPropertyControls(Control)

Calls SetupControl() for all child controls implementing IPropertyControl.

Declaration
protected virtual void SetupPropertyControls(Control control)
Parameters
Type Name Description
System.Web.UI.Control control

The control which contains the controls.

Events

TableCreated

Event raised before any rows will be added in CreatePropertyCollectionTable()

Declaration
public event EventHandler<PropertyTableEventArgs> TableCreated
Event Type
Type Description
System.EventHandler<PropertyTableEventArgs>

TableRowAdded

Event raised after each row is added in CreatePropertyCollectionTable()

Declaration
public event EventHandler<PropertyTableRowEventArgs> TableRowAdded
Event Type
Type Description
System.EventHandler<PropertyTableRowEventArgs>

Implements

System.Web.UI.INamingContainer

Extension Methods