Click or drag to resize
BasicRepeater Class
Extended Repeater control that automates databinding.
Inheritance Hierarchy

Namespace: CMS.Controls
Assembly: CMS.Controls (in CMS.Controls.dll) Version: 8.2.23
Syntax
C#
public class BasicRepeater : UIRepeater, 
	IUniPageable, IUniPageableContainer, IRelatedData

The BasicRepeater type exposes the following members.

Constructors
  NameDescription
Public methodBasicRepeater
Constructor.
Top
Methods
  NameDescription
Protected methodBoundPagerToDataSource
Bound pager to the external external DataSource
Protected methodCreateControlHierarchy
Creates a control hierarchy with or without the specified datasource.
(Overrides RepeaterCreateControlHierarchy(Boolean).)
Public methodDataBind
Binds the data.
(Overrides RepeaterDataBind.)
Public methodHasData
Indicates if datasource contains data.
Protected methodInitControl
Ensures default data binding
Protected methodOnInit
Init event handler.
(Overrides UIRepeaterOnInit(EventArgs).)
Protected methodOnLoad
OnLoad event handler
(Overrides RepeaterOnLoad(EventArgs).)
Protected methodOnPreRender
OnPreRender override.
(Overrides RepeaterOnPreRender(EventArgs).)
Protected methodRaiseOnBeforeInit
Raises the OnBeforeInit event.
Public methodReBind
Evokes control databind.
Public methodReloadData
Reloads the control data, skips the loading if the data is already loaded.
Protected methodRender
Render event handler, to maintain the proper control rendering.
(Overrides ControlRender(HtmlTextWriter).)
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodCallHandled
Calls the method handled by the exception handler. If the call doesn't succeed, the problem is reported through parent IExceptionHandler control instead of throwing unhandled exception for the entire page. Returns true, if the call succeeded, otherwise returns false.
(Defined by ControlsExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
Fields
  NameDescription
Protected fieldmControlsLoaded
Flag saying whether the dynamic controls has been loaded yet.
Protected fieldmDataLoaded
Flag saying whether the data has been loaded yet.
Protected fieldmOnBeforeInitFired
True if the on before init was fired.
Protected fieldmRelatedData
Custom data connected to the object.
Protected fieldmRelatedDataLoaded
Related data is loaded.
Protected fielduseDataSourceControl
Indicates whether the viewer should obtain data source from the referenced control provided by the value of DataSourceControl property.
Top
Properties
  NameDescription
Public propertyDataBindByDefault
Indicates whether data binding should be performed by default.
Public propertyDataSource
Object from which data-bound control retrieves its list of data item.
(Overrides UIRepeaterDataSource.)
Public propertyDataSourceControl
Control with data source.
Public propertyDataSourceName
Gets or sets name of source.
Protected propertyDefaultDataSource
Default data source to use if no external is provided.
Public propertyHideControlForZeroRows
Hides the control when no data is loaded. Default value is False.
Public propertyPageableControl
Gets or sets the encapsulated control that implements IUniPageable interface.
Public propertyPagerDataItem
Pager data item object.
Public propertyPagerForceNumberOfResults
Gets or sets the number of result. Enables proceed "fake" datasets, where number of results in the dataset is not correspondent to the real number of results This property must be equal -1 if should be disabled
Public propertyRelatedData
Custom data connected to the object, if not set, returns the Related data of the nearest IDataControl.
Public propertyResolveDynamicControls
Gets or sets the value that indicates whether dynamic controls should be resolved
Public propertyShortID
Short ID of the control.
(Inherited from UIRepeater.)
Public propertyUniPagerControl
Pager control.
Public propertyZeroRowsText
Text to be shown when the control is hidden by HideControlForZeroRows.
Top
Events
  NameDescription
Public eventOnBeforeInit
On before init handler.
Public eventOnPageBinding
Occurs when the control bind data.
Public eventOnPageChanged
Occurs when the pager change the page and current mode is postback => reload data
Top
See Also