Click or drag to resize
UniView Class
UniView control is basic control to display data based on selected templates.
Inheritance Hierarchy

Namespace: CMS.DocumentEngine.Web.UI
Assembly: CMS.DocumentEngine.Web.UI (in CMS.DocumentEngine.Web.UI.dll) Version: 12.0.0
Syntax
C#
public class UniView : CompositeDataBoundControl, IUniPageable

The UniView type exposes the following members.

Constructors
  NameDescription
Public methodUniView
Top
Properties
  NameDescription
Public propertyAlternatingItemTemplate
Alternating item template.
Public propertyAlternatingRange
Item / AlternatingItem template changing interval
Public propertyAlternatingStartPosition
Alternating start position.
Public propertyDataSource
Gets or sets the object from which data-bound control retrieves its list of data item.
(Overrides BaseDataBoundControlDataSource.)
Public propertyFirstItemTemplate
First item template.
Public propertyFooterTemplate
Footer item template.
Public propertyHeaderTemplate
Header item template.
Public propertyHideHeaderAndFooterForSingleItem
Hide Outer data (header, footer) for single item.
Public propertyHierarchicalDisplayMode
Gets or sets the display mode for hierarchical datasource.
Public propertyItemTemplate
Default item template.
Public propertyLastItemTemplate
Last item template.
Public propertyOuterData
Data generated in header and footer.
Public propertyPagerDataItem
Gets or sets the IUniPageable.PagerDataItem value.
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 propertyRelationColumnID
Column from which specifies value of current level (for example parent document id).
Public propertySelectedItemColumnName
Gets or sets the column name which should be used for selected item comparison.
Public propertySelectedItemValue
Gets or sets the value which indicates selected item.
Public propertySeparatorTemplate
Separator item template.
Public propertySingleItemTemplate
Single item template.
Public propertyTransformations
Gets or sets the transformation collection.
Public propertyUniPagerControl
Pager control.
Public propertyUseNearestItemForHeaderAndFooter
Gets or sets the value that indicates whether data from nearest data item should be used for header or footer item. This value is ignored if OuterData property is set.
Top
Methods
  NameDescription
Protected methodCreateChildControls
Creates child controls.
(Overrides CompositeDataBoundControlCreateChildControls(IEnumerable, Boolean).)
Protected methodCreateHierarchicalItem
Creates new UniView item and initialize object with selected template.
Protected methodCreateItem
Creates new UniView item and initialize object with selected template.
Protected methodGenerateContent
Default method to the content generating.
Protected methodGenerateInnerHierarchicalContent
Inner hierarchical content generating.
Protected methodGenerateSeparateHierarchicalContent
Separate hierarchical content generating.
Protected methodGetDataItemValue
Returns value from specified data item object.
Protected methodGetItemsCount
Try to get items count from IEnumerable object.
Protected methodGetItemType
Returns item type based on current index and item count.
Protected methodGetTemplate
Returns default item template if selected template is empty.
Protected methodObjectToDataRowView
Converts object (DataSet, DataTable, DataRow) to DataRowView.
Protected methodProcessItem
Add UniView item to the controls collection and bind it.
Public methodReBind
Evokes control databind.
Protected methodRender
Removes default webcontrol span tag.
(Overrides WebControlRender(HtmlTextWriter).)
Top
Extension Methods
  NameDescription
Public Extension MethodAddCssClass
Adds CSS class to control. If class is already present, than adding is skipped. Class names are case sensitive.
(Defined by ControlsExtensions.)
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 MethodGetCssClasses
Returns all CSS classes of control.
(Defined by ControlsExtensions.)
Public Extension MethodGetRenderedHTML
Returns HTML which would be rendered by control to page.
(Defined by ControlsExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by ControlsExtensions.)
Public Extension MethodHasCssClass
Checks whether the control has given CSS class. Class names are case sensitive.
(Defined by ControlsExtensions.)
Public Extension MethodRemoveCssClass
Removes all occurrences. Class names are case sensitive.
(Defined by ControlsExtensions.)
Public Extension MethodSetCssClasses
Sets CSS classes to the control. Current classes will be overridden.
(Defined by ControlsExtensions.)
Top
Events
  NameDescription
Public eventOnItemCreated
Occurs when an item is created in the UniView control.
Public eventOnItemDataBound
Occurs when the control bind UniView item.
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