Class PropertyDataCollectionControl
Used to render forms for PropertyDataCollection.
Inheritance
Implements
Namespace: EPiServer.Web.WebControls
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7Syntax
public class PropertyDataCollectionControl : HtmlTable, INamingContainerConstructors
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 | 
 | 
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 | 
 | 
ShowLanguageIndication
Gets or sets a value indicating whether [show language indication].
Declaration
public bool ShowLanguageIndication { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
 | 
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> TableCreatedEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<PropertyTableEventArgs> | 
TableRowAdded
Event raised after each row is added in CreatePropertyCollectionTable()
Declaration
public event EventHandler<PropertyTableRowEventArgs> TableRowAddedEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<PropertyTableRowEventArgs> | 
