Skip to main content
Version: 3.5

DataRepeater

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Displays data in a customizable list format.

public class DataRepeater : ContainerControl, ISupportInitialize

Constructors​

Instance memberDataRepeater()​

Initializes a new instance of the DataRepeater class.

Properties​

Instance memberAllowUserToAddItems​

Boolean: Returns or sets whether users can add a new row to the DataRepeater at run time. (Default: True)

Instance memberAllowUserToDeleteItems​

Boolean: Returns or sets whether users can delete a row from the DataRepeater at run time. (Default: True)

Instance memberBorderStyle​

BorderStyle: Returns or sets the border style for the DataRepeater control. (Default: Solid)

Instance memberCurrentItem​

DataRepeaterItem: Returns the current DataRepeaterItem in the DataRepeater control.

Instance memberCurrentItemIndex​

Int32: Returns or sets the index of the current DataRepeaterItem in a DataRepeater control.

Instance memberDataMember​

String: Return or sets the name of the list or table in the data source for which the DataRepeater is displaying data. (Default: "")

Instance memberDataSource​

Object: Returns or sets the data source for which the DataRepeater is displaying data. (Default: null)

Instance memberDisplayedItems​

DataRepeaterItem[]: Returns the list of DataRepeaterItem items currently displayed on the client.

Instance memberFirstDisplayedItemIndex​

Int32: Return the index of the first currently displayed DataRepeaterItem in a DataRepeater control.

Instance memberIsCurrentItemModified​

Boolean: Return whether the data for a DataRepeaterItem in the DataRepeater control has been changed by a user.

Instance memberItemBorderStyle​

BorderStyle: Returns or sets the border style for the items in a DataRepeater control.

Instance memberItemCount​

Int32: Returns or sets the number of DataRepeaterItem items that are in the DataRepeater control.

Instance memberItemHeaderSize​

Int32: Return sets the size of the item header in a DataRepeater control.

Instance memberItemHeaderVisible​

Boolean: Returns or sets whether item headers are displayed in a DataRepeater control.

Instance memberItemSelectedBackColor​

Color: Returns or sets the background color for the DataRepeaterItem panel when it's the CurrentItem.

Instance memberItemSize​

Size: Returns or sets the size of the DataRepeaterItem child panels.

Instance memberItemTemplate​

DataRepeaterItem: Returns the template that represents the DataRepeaterItem for the DataRepeater control.

Instance memberLayoutStyle​

DataRepeaterLayoutStyles: Return or sets whether the DataRepeater control will be displayed with a vertical or horizontal orientation. (Default: Vertical)

Instance memberPrefetchItems​

Int32: Returns or sets the number of items to prefetch outside of the visible area. The default is 0 (disabled). (Default: 0)

Instance memberRightToLeftLayout​

Boolean: Enables or disables right-to-left layout when the value of RightToLeft is Yes (Default: False)

Instance memberScrollBarVisible​

Boolean: Returns or sets whether the scrollbar is visible. When the scrollbar is hidden, the user can still scroll using touch events, the keyboard, or the wheel. (Default: True)

Instance memberVirtualMode​

Boolean: Returns or sets a value that indicates whether you have provided your own data-management operations for the DataRepeater control. (Default: False)

Methods​

Instance memberAddNew()​

Adds a new DataRepeaterItem to the DataRepeater control.

Throws:

Instance memberCancelEdit()​

Allows users to cancel an edit to the current child control in the current DataRepeaterItem.

Instance memberRefresh()​

Forces a full reload of the data displayed by this DataRepeater.

Instance memberRefresh(refreshChildren)​

Forces a full reload of the data displayed by this DataRepeater.

ParameterTypeDescription
refreshChildrenBooleanTrue to also refresh all the children of this control.

Instance memberRemoveAt(index)​

Removes a DataRepeaterItem at the specified position from a DataRepeater control.

ParameterTypeDescription
indexInt32The index of the DataRepeaterItem.

Throws:

Instance memberResetItemBorderStyle()​

Resets the value of ItemBorderStyle to the original value.

Instance memberResetItemHeaderSize()​

Resets the value of ItemHeaderSize to the original value.

Instance memberResetItemHeaderVisible()​

Resets the value of ItemHeaderVisible to the original value.

Instance memberScrollItemIntoView(index)​

Scrolls the specified DataRepeaterItem into view.

ParameterTypeDescription
indexInt32The index of the DataRepeaterItem.

Throws:

Instance memberScrollItemIntoView(index, alignWithTop)​

Scrolls a specified DataRepeaterItem into view, optionally aligning it with the top of the control.

ParameterTypeDescription
indexInt32The index of the DataRepeaterItem.
alignWithTopBooleantrue to align the top of the DataRepeaterItem with the top of the control; otherwise, false.

Throws:

Events​

Instance memberAllowUserToAddItemsChanged​

EventHandler Fired when the AllowUserToAddItems property changes.

Instance memberAllowUserToDeleteItemsChanged​

EventHandler Fired when the AllowUserToDeleteItems property changes.

Instance memberCurrentItemIndexChanged​

EventHandler Fired when the property CurrentItemIndex changes.

Instance memberDataError​

DataRepeaterDataErrorEventHandler Fired when an external data-parsing or validation operation throws an exception, or when an attempt to commit data to a data source fails.

Instance memberDataMemberChanged​

EventHandler Fired when the DataMember property changes.

Instance memberDataSourceChanged​

EventHandler Fired when the DataSource property changes.

Instance memberItemCloned​

DataRepeaterItemEventHandler Fired after the DataRepeaterItem and its controls are cloned from the ItemTemplate.

Instance memberItemCloning​

DataRepeaterItemCloneEventHandler Fired before the DataRepeaterItem and its controls are cloned from the ItemTemplate.

Instance memberItemsAdded​

DataRepeaterAddRemoveItemsEventHandler Fired when a new DataRepeaterItem is added to the DataRepeater control.

Instance memberItemSelected​

DataRepeaterItemEventHandler Fired after the DataRepeaterItem becomes the current item.

Instance memberItemsRemoved​

DataRepeaterAddRemoveItemsEventHandler Fired when a DataRepeaterItem is deleted from the DataRepeater control.

Instance memberItemUpdate​

DataRepeaterItemEventHandler Fired when an instance of DataRepeaterItem is updated.

Instance memberItemValueNeeded​

DataRepeaterItemValueEventHandler Fired when the VirtualMode property is set to true and a new value for a child control of a DataRepeaterItem is needed.

Instance memberItemValuePushed​

DataRepeaterItemValueEventHandler Fired when the VirtualMode property is set to true and the value of a child control in the DataRepeaterItem changes.

Instance memberLayoutStyleChanged​

EventHandler Fired when the LayoutStyle property changes.

Instance memberNewItemNeeded​

EventHandler Fired when the VirtualMode property is set to true and the user creates a new DataRepeaterItem.

Instance memberUserAddedItems​

DataRepeaterAddRemoveItemsEventHandler Fired when the user adds a new DataRepeaterItem.

Instance memberUserDeletedItems​

DataRepeaterAddRemoveItemsEventHandler Fired after the user deletes a DataRepeaterItem.

Instance memberUserDeletingItems​

DataRepeaterAddRemoveItemsCancelEventHandler Fired when the user deletes a DataRepeaterItem.

Instance memberVirtualModeChanged​

EventHandler Fired when the VirtualMode property changes.

Implements​

NameDescription
IBindableComponentBindable components implement this interface.
IContainerControlProvides the functionality for a control to act as a parent for other controls.
IDropTargetControls that support drag & drop operations implement this interface.
IWisejComponentAll wisej components implement this interface.
IWisejControlAll wisej controls derived from the Control class must implement this interface.
IWisejSerializableAllows an object to serialize itself.