DataRepeater

Wisej.Web.DataRepeater

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.0.0.0)

Displays data in a customizable list format.

public class DataRepeater : ContainerControl, ISupportInitialize

Constructors

DataRepeater()

Initializes a new instance of the DataRepeater class.

Properties

AllowUserToAddItems

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

AllowUserToDeleteItems

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

BorderStyle

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

CurrentItem

DataRepeaterItem: Returns the current DataRepeaterItem in the DataRepeater control.

CurrentItemIndex

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

DataMember

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

DataSource

Object: Returns or sets the data source for which the DataRepeater is displaying data.

DisplayedItems

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

FirstDisplayedItemIndex

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

IsCurrentItemModified

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

ItemBorderStyle

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

ItemCount

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

ItemHeaderSize

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

ItemHeaderVisible

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

ItemSelectedBackColor

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

ItemSize

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

ItemTemplate

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

LayoutStyle

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

PrefetchItems

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

RightToLeftLayout

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

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.

VirtualMode

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

Methods

AddNew()

Adds a new DataRepeaterItem to the DataRepeater control.

Throws:

CancelEdit()

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

Refresh()

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

Refresh(refreshChildren)

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

Parameter
Type
Description

refreshChildren

True to also refresh all the children of this control.

RemoveAt(index)

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

Parameter
Type
Description

index

Throws:

ResetItemBorderStyle()

Resets the value of ItemBorderStyle to the original value.

ResetItemHeaderSize()

Resets the value of ItemHeaderSize to the original value.

ResetItemHeaderVisible()

Resets the value of ItemHeaderVisible to the original value.

ScrollItemIntoView(index)

Scrolls the specified DataRepeaterItem into view.

Parameter
Type
Description

index

Throws:

ScrollItemIntoView(index, alignWithTop)

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

Parameter
Type
Description

index

alignWithTop

Throws:

Events

AllowUserToAddItemsChanged

EventHandler Fired when the AllowUserToAddItems property changes.

AllowUserToDeleteItemsChanged

EventHandler Fired when the AllowUserToDeleteItems property changes.

CurrentItemIndexChanged

EventHandler Fired when the property CurrentItemIndex changes.

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.

DataMemberChanged

EventHandler Fired when the DataMember property changes.

DataSourceChanged

EventHandler Fired when the DataSource property changes.

ItemCloned

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

ItemCloning

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

ItemsAdded

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

ItemSelected

DataRepeaterItemEventHandler Fired after the DataRepeaterItem becomes the current item.

ItemsRemoved

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

ItemUpdate

DataRepeaterItemEventHandler Fired when an instance of DataRepeaterItem is updated.

ItemValueNeeded

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

ItemValuePushed

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

LayoutStyleChanged

EventHandler Fired when the LayoutStyle property changes.

NewItemNeeded

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

UserAddedItems

DataRepeaterAddRemoveItemsEventHandler Fired when the user adds a new DataRepeaterItem.

UserDeletedItems

DataRepeaterAddRemoveItemsEventHandler Fired after the user deletes a DataRepeaterItem.

UserDeletingItems

DataRepeaterAddRemoveItemsCancelEventHandler Fired when the user deletes a DataRepeaterItem.

VirtualModeChanged

EventHandler Fired when the VirtualMode property changes.

Implements

Name
Description

Bindable components implement this interface.

Provides the functionality for a control to act as a parent for other controls.

All wisej components implement this interface.

Allows an object to serialize itself.

Last updated