Skip to main content
Version: 4.1

DataRepeater

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Displays data in a customizable list format.

public class DataRepeater : ContainerControl, ISupportInitialize

Constructors

Instance member DataRepeater()

Initializes a new instance of the DataRepeater class.

Properties

Instance member AllowUserToAddItems

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

Instance member AllowUserToDeleteItems

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

Instance member AutoSize

Boolean: Returns or sets a value that indicates whether the control resizes based on its contents. (Default: False)

Instance member AutoSizeMode

AutoSizeMode: Indicates the automatic sizing behavior of the control. (Default: GrowOnly)

Instance member BorderStyle

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

Instance member ClientArea

Rectangle: Returns the client rectangle to use in the designer.

Instance member CurrentItem

DataRepeaterItem: Returns the current DataRepeaterItem in the DataRepeater control. (Default: null)

Instance member CurrentItemIndex

Int32: Returns or sets the index of the current DataRepeaterItem in a DataRepeater control. (Default: -1)

Instance member DataMember

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

Instance member DataSource

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

Instance member DisplayedItems

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

Instance member DisplayRectangle

Rectangle:

Instance member FirstDisplayedItemIndex

Int32: Return the index of the first currently displayed DataRepeaterItem in a DataRepeater control. (Default: 0)

Instance member IsCurrentItemModified

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

Instance member ItemBorderStyle

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

Default value is BorderStyle.Solid

Instance member ItemCount

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

Instance member ItemHeaderSize

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

Instance member ItemHeaderVisible

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

The default value is true.

Instance member ItemSelectedBackColor

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

Instance member ItemSelectedForeColor

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

Instance member ItemSize

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

Instance member ItemTemplate

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

The default value is a Wisej.Web.DataRepeaterItem with BorderStyle: None

Instance member LayoutStyle

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

Instance member PrefetchItems

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

Instance member RightToLeftLayout

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

Instance member ScrollBarVisible

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 member VirtualMode

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 member AddNew()

Adds a new DataRepeaterItem to the DataRepeater control.

Instance member CancelEdit()

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

Instance member FocusActiveControl()

Selects the active control. If the active control is not focusable, it selects the next focusable control.

Protected member GetThemeStateName()

Returns: String.

Protected member OnAllowUserToAddItemsChanged(e)

Fires the AllowUserToAddItemsChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnAllowUserToDeleteItemsChanged(e)

Fires the AllowUserToDeleteItemsChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnBindingContextChanged(e)

Fires the BindingContextChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnCreateControl()

Protected member OnCurrentItemIndexChanged(e)

Fires the CurrentItemIndexChanged event.

ParameterTypeDescription
eEventArgsAn EventArgs object that contains the event data.

Protected member OnDataError(e)

Fires the DataError event.

ParameterTypeDescription
eDataRepeaterDataErrorEventArgsAn instance of DataRepeaterDataErrorEventArgs that contains the event data.

Protected member OnDataMemberChanged(e)

Fires the DataMemberChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnDataSourceChanged(e)

Fires the DataSourceChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnItemCloned(e)

Fires the ItemCloned event.

ParameterTypeDescription
eDataRepeaterItemEventArgsAn DataRepeaterItemEventArgs object that contains the event data.

Protected member OnItemCloning(e)

Fires the ItemCloning event.

ParameterTypeDescription
eDataRepeaterItemCloneEventArgsAn DataRepeaterItemCloneEventArgs object that contains the event data.

Protected member OnItemsAdded(e)

Fires the ItemsAdded event.

ParameterTypeDescription
eDataRepeaterAddRemoveItemsEventArgsAn DataRepeaterAddRemoveItemsEventArgs object that contains the event data.

Protected member OnItemSelected(e)

Fires the ItemSelected event.

ParameterTypeDescription
eDataRepeaterItemEventArgsAn DataRepeaterItemEventArgs object that contains the event data.

Protected member OnItemsRemoved(e)

Fires the ItemsRemoved event.

ParameterTypeDescription
eDataRepeaterAddRemoveItemsEventArgsAn DataRepeaterAddRemoveItemsEventArgs object that contains the event data.

Protected member OnItemUpdate(e)

Fires the ItemUpdate event.

ParameterTypeDescription
eDataRepeaterItemEventArgsAn DataRepeaterItemEventArgs object that contains the event data.

Protected member OnItemValueNeeded(e)

Fires the ItemValueNeeded event.

ParameterTypeDescription
eDataRepeaterItemValueEventArgsAn DataRepeaterItemValueEventArgs object that contains the event data.

Protected member OnItemValuePushed(e)

Fires the ItemValueNeeded event.

ParameterTypeDescription
eDataRepeaterItemValueEventArgsAn DataRepeaterItemValueEventArgs object that contains the event data.

Protected member OnLayoutStyleChanged(e)

Fires the LayoutStyleChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnNewItemNeeded(e)

Fires the NewItemNeeded event.

ParameterTypeDescription
eEventArgsAn EventArgs object that contains the event data.

Protected member OnUserAddedItems(e)

Fires the UserAddedItems event.

ParameterTypeDescription
eDataRepeaterAddRemoveItemsEventArgsAn DataRepeaterAddRemoveItemsEventArgs object that contains the event data.

Protected member OnUserDeletedItems(e)

Fires the UserDeletedItems event.

ParameterTypeDescription
eDataRepeaterAddRemoveItemsEventArgsAn DataRepeaterAddRemoveItemsEventArgs object that contains the event data.

Protected member OnUserDeletingItems(e)

Fires the UserDeletingItems event.

ParameterTypeDescription
eDataRepeaterAddRemoveItemsCancelEventArgsAn DataRepeaterAddRemoveItemsCancelEventArgs object that contains the event data.

Protected member OnValidating(e)

Fires the Validating event.

ParameterTypeDescription
eCancelEventArgsA CancelEventArgs that contains the event data.

Protected member OnVirtualModeChanged(e)

Fires the VirtualModeChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnWebEvent(e)

Processes the event from the client.

ParameterTypeDescription
eWisejEventArgsEvent arguments.

Protected member OnWebRender(config)

Renders the client component.

ParameterTypeDescription
configObjectDynamic configuration object.

Protected member OnWebUpdate(state)

Updates the client component using the state information.

ParameterTypeDescription
stateObjectDynamic state object.

Instance member Refresh()

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

Instance member Refresh(refreshChildren)

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

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

Instance member RemoveAt(index)

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

ParameterTypeDescription
indexInt32The index of the DataRepeaterItem.

Throws:

Protected member RenderScrollableProperties(config)

ParameterTypeDescription
configObject

Instance member ResetItemBorderStyle()

Resets the value of ItemBorderStyle to the original value.

Instance member ResetItemHeaderSize()

Resets the value of ItemHeaderSize to the original value.

Instance member ResetItemHeaderVisible()

Resets the value of ItemHeaderVisible to the original value.

Instance member ScrollItemIntoView(index)

Scrolls the specified DataRepeaterItem into view.

ParameterTypeDescription
indexInt32The index of the DataRepeaterItem.

Throws:

Instance member ScrollItemIntoView(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:

Protected member SetBoundsCore(x, y, width, height, specified)

ParameterTypeDescription
xInt32
yInt32
widthInt32
heightInt32
specifiedBoundsSpecified

Events

Instance member AllowUserToAddItemsChanged

EventHandler Fired when the AllowUserToAddItems property changes.

Instance member AllowUserToDeleteItemsChanged

EventHandler Fired when the AllowUserToDeleteItems property changes.

Instance member CurrentItemIndexChanged

EventHandler Fired when the property CurrentItemIndex changes.

Instance member DataError

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 member DataMemberChanged

EventHandler Fired when the DataMember property changes.

Instance member DataSourceChanged

EventHandler Fired when the DataSource property changes.

Instance member ItemCloned

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

Instance member ItemCloning

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

Instance member ItemsAdded

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

Instance member ItemSelected

DataRepeaterItemEventHandler Fired after the DataRepeaterItem becomes the current item.

Instance member ItemsRemoved

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

Instance member ItemUpdate

DataRepeaterItemEventHandler Fired when an instance of DataRepeaterItem is updated.

Instance member ItemValueNeeded

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

Instance member ItemValuePushed

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

Instance member LayoutStyleChanged

EventHandler Fired when the LayoutStyle property changes.

Instance member NewItemNeeded

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

Instance member UserAddedItems

DataRepeaterAddRemoveItemsEventHandler Fired when the user adds a new DataRepeaterItem.

Instance member UserDeletedItems

DataRepeaterAddRemoveItemsEventHandler Fired after the user deletes a DataRepeaterItem.

Instance member UserDeletingItems

DataRepeaterAddRemoveItemsCancelEventHandler Fired when the user deletes a DataRepeaterItem.

Instance member VirtualModeChanged

EventHandler Fired when the VirtualMode property changes.

Implements

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
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.