• DXC Service
  • Products
    • Episerver CMS
    • Episerver Commerce
    • Episerver Campaign
    • Episerver Find
    • Episerver Personalization
      • Advance
      • Perform
      • Insight
      • Reach
      • Personalized Find
    • Episerver Social API
    • Episerver apps & integrations
    • Ektron CMS
  • Documentation
    • Get started
      • DXC Service
      • CMS
      • Commerce
      • Campaign
      • Find
      • Personalization
      • Insight
      • Social API
      • Service API
    • Developer guides
      • DXC Service
      • CMS
      • Commerce
      • Campaign
      • Find
      • Advance
      • Perform
      • Reach
      • Personalized Find
      • Insight
      • Tracking
      • Profile Store
      • Content Delivery API
      • Social API
      • Service API
      • Forms
      • MA connectors
    • UI feature list
    • Technical overview
    • System requirements
    • Installation
    • User guide
    • APIs and libraries
      • CMS
      • Commerce
      • Campaign
      • Find
      • Social
      • REST APIs
    • Video tutorials
    • Releases
    • Upgrading
      • CMS
      • Commerce
      • Find
      • Forms
      • Service API
      • Personalization
  • Blogs
  • Forum
  • Support
  • EMVPs
  • Register
  • Log in
All Content Documentation Forum User Guide Support Help Center Blogs Articles Releases Bug List SDK Documents
People
Home / Documentation /
  • Framework reference
  • EPiServer.Web.PropertyControls
  • PropertyBlockControl
    • PropertyBlockControl Methods
    • PropertyBlockControl Properties

PropertyBlockControl Class

Assembly: EPiServer (in EPiServer.dll) Version: 8.0.0

Syntax:

C#
public class PropertyBlockControl : PropertyDataControl

The control to render PropertyBlock<T>.

Methods

Name Summary Status
AddErrorValidator Adds an error validator to the control collection and to the Page.Validators collection. public
ApplyChanges Applies changes for the posted data to the page's properties. public
ApplyControlAttributes Copies web attribues and style information. Also sets a css class indicating if this property is required if RenderType is set to Edit. public
ApplyEditAttributes Applies the required data attributes to the first control to make the property editable. public
ApplyEditAttributes(Control, String) Applies the attributes needed to make the content of this control editable. public, static
ApplyEditAttributes(TContentData)(Control, Expression(Func(TContentData, Object))) Applies the attributes needed to make the content of this control editable. public, static
ApplyEditChanges Applies changes for the posted data to the page's properties when the RenderType property is set to Edit. public
ApplyRequiredCssClass Applies a CSS class indicating that the input control is required. protected
CopyWebAttributes(HtmlControl) Copies render attributes from a WebControl defined in the property AttributeSourceControl. If this property is not set the attributes will be copied from the Control itself. public
CopyWebAttributes(WebControl) Copies render attributes from a WebControl defined in the property AttributeSourceControl. If this property is not set the attributes will be copied from the Control itself. public
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. protected
CreateDefaultControls Creates a block 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. public
CreateEditControls Creates an edit interface for the property. public
CreateErrorValidator Creates an static validator for an error message. protected
CreateOnPageEditControls Creates the "on page edit" controls. public
FindControl(T)(Control) Finds the first control of the requested type. public, static
FindControl(T)(Control, Int32) Finds control number n of the requested type. public, static
FindControl(T)(Control, String) Finds the first control of the requested type and the requested id. public, static
FindControl(T)(Control, String, Int32) Finds control number n of the requested type that has a specific id. public, static
GetIdentity Extracts the identity from the object if it has one. public, static
GetOriginalType Gets the Type of the current object, ensuring that the eventual type that could be generated by a proxy interceptor is ignored. public, static
OnPreRender Raises the PreRender event. protected
PropertyBlockControl Constructor public
PropertyIsEditableForCurrentLanguage Determines if the property is editable in the current language public
RenderBeginTag Renders the HTML opening tag of the control to the specified writer. This method is used primarily by control developers. public
RenderEndTag Renders the HTML closing tag of the control into the specified writer. This method is used primarily by control developers. public
SetEnableStateForChildControls protected
SetIdentity Sets the identity into the object if supported public, static
SetupControl Called when setting up the properties for a page. public
SetupEditControls Used to apply a custom setup to the edit controls. protected
SetValue(Object) Sets a given value to the current PropertyData object. public
SetValue(Object, PropertyData) Sets a given value to the current PropertyData object. public
ShouldCreateDefaultControls If CreateDefaultControls()()()() should be called. protected
ToJson protected
ToPropertyBag(Object) Create a PropertyBag instance and populates it with its properties The algorith for extracting properties is as follows: 1) Property must a have a getter and setter 2a) Getter must be public OR 2b) The class must be marked either with the DataContractAttribute or EPiServerDataContractAttribute and the property must be marked either with the DataMemberAttribute or EPiServerDataMemberAttribute public, static
ToPropertyBag(Object, IEnumerable(String)) Create a PropertyBag instance and populates it with its properties public, static
ToString Returns a string representation of the property's value.. public
ToWebString Get the web string representation of the property's value, on properties that do not use the editor this string will usually not contain any markup characters. public
TranslateDisplayName Gets the translated display name of the property. public

Properties

Name Summary Status
AttributeSourceControl A WebControl that will be used to copy values from when copying attributes to WebControls for a PropertyControl. public
ContentSource Gets the nearest parent that implements IContentSource. public
CurrentContent Gets the current content object from the nearest parent that implements IContentSource. public
CurrentPage Gets the current PageData object from the nearest parent that implements IPageSource. public
CustomTagName Gets or sets the tag name. If not set a span-tag will be used. public
DisplayEditUI Gets a value indicating whether the control should display an edit user interface. public
EditorSettings Gets or sets the editor settings. public
IsNull Gets a value indicating whether the property is null. public
IsRequired Gets a value indicating whether the property is required. protected
Name Gets the name of the property. public
ObjectSerializerFactory Gets or sets the object serializer to use when serializing to Json. protected
OverlaySettings Gets or sets the overlay settings. public
PageSource Gets the nearest parent that implements IPageSource. public
Properties Sets the properties that are being edited for the IPropertyControl. public
PropertyData Gets or sets the PropertyData for the IPropertyControl. public
RenderSettings Dictionary of key values that can be used to customize the rendering of the property. These settings will also be passed to the property editor. public
RenderType Sets the RenderType for the IPropertyControl. public
RequiredFieldCssClass Gets or sets the CSS class that will be used to indicate a required field. public
RowLayout Specifies how a property row is rendered in the edit user interface. public
SupportsOnPageEdit Gets a value indicating whether this control supports "on page edit". public
Tag Gets or sets the current tag that should be used to select template public
ValidationGroup Gets or sets the validation group. public

Inheritance

  • System.Object
  • System.Web.UI.Control
  • System.Web.UI.WebControls.WebControl
  • EPiServer.Web.PropertyControls.PropertyDataControl
  • EPiServer.Web.PropertyControls.PropertyBlockControl

About Episerver

  • episerver.com
  • Episerver certification
  • Job openings
  • License center
  • Privacy statement

Community

  • Blogs
  • Forums
  • Articles
  • Terms of use
  • EMVP program

Learning resources

  • Technical overview
  • Learning path Episerver CMS
  • Developer guides
  • User guide
  • Video tutorials
  • Episerver GitHub
  • Episerver Education

Contact

Episerver Support

See the Support page for contact information.

Feedback on Episerver World

If you’d like to give feedback about this site, please click here. Thank you very much!
© Episerver 2019 │ About Episerver World