Kentico CMS 7.0 Controls

Configuration

Configuration

Previous topic Next topic Mail us feedback on this topic!  

Configuration

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

The following properties of the UniView control can be set or used in the API:

 

Property Name

Description

Sample Value

AlternatingRange

Indicates how often the AlternatingItemTemplate should be used.


AlternatingStartPosition

Indicates the item number from which the AlternatingItemTemplate should start being used.


DataSource

The object from which the list of data items is retrieved.


HideHeaderAndFooterForSingleItem

Indicates whether the content of the HeaderTemplate and FooterTemplate should be hidden if only a single item is displayed.


HierarchicalDisplayMode

Sets the hierarchical display mode. Inner generates sub-levels inside the level above, Separate generates sub-levels outside of the upper levels.

"Inner"

"Separate"

OuterData

Data generated in the HeaderTemplate and FooterTemplate.


PagerDataItem

Gets or sets the pager data item object.


PagerForceNumberOfResults

If set, the DataSet containing paged items is not modified by the pager, but the pager itself behaves as if the amount of paged items were identical to this value. The value must be set to -1 for the property to be disabled.


RelationColumnID

The name of the column that specifies the value of the current hierarchy level of items.

"NodeID"

SelectedItemColumnName

The name of the column that should be used for to find out which item is currently selected.

"DocumentID"

SelectedItemValue

The item whose column specified by the SelectedItemColumn property matches the value of this property will be designated as the currently selected item.

 

Typically, you will need to insert a Macro expression in order to dynamically retrieve the appropriate value from the current context.

"{%currentpageinfo.documentid%}"

Transformations

Allows you to assign a HierarchicalTransformations object representing a hierarchical transformation. The UniView renders the source data according to the hierarchical transformation (instead of the ItemTemplates).

 

Note: To use a hierarchical transformation, you need to set the Transformations property before calling the UniView's DataBind method.

 

You can find an example in Appearance and styling.


UseNearestItemForHeaderAndFooter

Indicates whether the control provides data to the item templates (or transformations) that display the header and footer content. You can work with the data inside the code of the templates.

 

Header templates use the data of the first item on the given hierarchy level.

Footer templates use the data of the last item on the given hierarchy level.

 

The control ignores this property if the OuterData property is set.