Table of Contents

Class ReorderList

Namespace
AjaxControlToolkit
Assembly
AjaxControlToolkit.dll
public class ReorderList : CompositeDataBoundControl, IRepeatInfoUser, INamingContainer, ICallbackEventHandler, IPostBackEventHandler
Inheritance
ReorderList
Implements
IRepeatInfoUser
INamingContainer
ICallbackEventHandler
IPostBackEventHandler

Constructors

ReorderList()

public ReorderList()

Properties

AllowReorder

public bool AllowReorder { get; set; }

Property Value

bool

CallbackCssStyle

public string CallbackCssStyle { get; set; }

Property Value

string

DataKeyField

public string DataKeyField { get; set; }

Property Value

string

DataKeys

[Browsable(false)]
public DataKeyCollection DataKeys { get; }

Property Value

DataKeyCollection

DataKeysArray

protected ArrayList DataKeysArray { get; }

Property Value

ArrayList

DataSourceID

[TypeConverter(typeof(TypedControlIDConverter<IDataSource>))]
public override string DataSourceID { get; set; }

Property Value

string

DragHandleAlignment

public ReorderHandleAlignment DragHandleAlignment { get; set; }

Property Value

ReorderHandleAlignment

DragHandleTemplate

[Browsable(false)]
public ITemplate DragHandleTemplate { get; set; }

Property Value

ITemplate

EditItemIndex

public int EditItemIndex { get; set; }

Property Value

int

EditItemTemplate

[Browsable(false)]
public ITemplate EditItemTemplate { get; set; }

Property Value

ITemplate

EmptyListTemplate

[Browsable(false)]
public ITemplate EmptyListTemplate { get; set; }

Property Value

ITemplate

HasFooter

public bool HasFooter { get; }

Property Value

bool

HasHeader

public bool HasHeader { get; }

Property Value

bool

HasSeparators

public bool HasSeparators { get; }

Property Value

bool

InsertItemTemplate

[Browsable(false)]
public ITemplate InsertItemTemplate { get; set; }

Property Value

ITemplate

ItemInsertLocation

public ReorderListInsertLocation ItemInsertLocation { get; set; }

Property Value

ReorderListInsertLocation

ItemTemplate

[Browsable(false)]
public ITemplate ItemTemplate { get; set; }

Property Value

ITemplate

Items

[Browsable(false)]
public ReorderListItemCollection Items { get; }

Property Value

ReorderListItemCollection

LayoutType

public ReorderListItemLayoutType LayoutType { get; set; }

Property Value

ReorderListItemLayoutType

PostBackOnReorder

public bool PostBackOnReorder { get; set; }

Property Value

bool

ReorderTemplate

[Browsable(false)]
public ITemplate ReorderTemplate { get; set; }

Property Value

ITemplate

RepeatedItemCount

public int RepeatedItemCount { get; }

Property Value

int

ShowInsertItem

public bool ShowInsertItem { get; set; }

Property Value

bool

SortOrderField

public string SortOrderField { get; set; }

Property Value

string

TagKey

protected override HtmlTextWriterTag TagKey { get; }

Property Value

HtmlTextWriterTag

Methods

CreateChildControls(IEnumerable, bool)

protected override int CreateChildControls(IEnumerable dataSource, bool dataBinding)

Parameters

dataSource IEnumerable
dataBinding bool

Returns

int

CreateDragHandle(ReorderListItem)

protected virtual void CreateDragHandle(ReorderListItem item)

Parameters

item ReorderListItem

CreateInsertItem(int)

protected virtual ReorderListItem CreateInsertItem(int index)

Parameters

index int

Returns

ReorderListItem

CreateItem(int, bool, object, ListItemType, bool)

protected virtual ReorderListItem CreateItem(int index, bool dataBind, object dataItem, ListItemType itemType, bool hasDragHandle)

Parameters

index int
dataBind bool
dataItem object
itemType ListItemType
hasDragHandle bool

Returns

ReorderListItem

DoReorder(int, int)

protected virtual bool DoReorder(int oldIndex, int newIndex)

Parameters

oldIndex int
newIndex int

Returns

bool

GetDropTemplateControl(out Control, out Control)

protected WebControl GetDropTemplateControl(out Control dropItem, out Control emptyItem)

Parameters

dropItem Control
emptyItem Control

Returns

WebControl

GetItemStyle(ListItemType, int)

public Style GetItemStyle(ListItemType itemType, int repeatIndex)

Parameters

itemType ListItemType
repeatIndex int

Returns

Style

GetPropertyValue<V>(string, V)

protected V GetPropertyValue<V>(string propertyName, V nullValue)

Parameters

propertyName string
nullValue V

Returns

V

Type Parameters

V

Invoke(object, EventArgs)

protected void Invoke(object key, EventArgs e)

Parameters

key object
e EventArgs

OnBubbleEvent(object, EventArgs)

protected override bool OnBubbleEvent(object source, EventArgs args)

Parameters

source object
args EventArgs

Returns

bool

OnCancelCommand(EventArgs)

protected virtual void OnCancelCommand(EventArgs e)

Parameters

e EventArgs

OnDeleteCommand(EventArgs)

protected virtual void OnDeleteCommand(EventArgs e)

Parameters

e EventArgs

OnEditCommand(EventArgs)

protected virtual void OnEditCommand(EventArgs e)

Parameters

e EventArgs

OnInsertCommand(EventArgs)

protected virtual void OnInsertCommand(EventArgs e)

Parameters

e EventArgs

OnItemCommand(EventArgs)

protected virtual void OnItemCommand(EventArgs e)

Parameters

e EventArgs

OnItemCreated(EventArgs)

protected virtual void OnItemCreated(EventArgs e)

Parameters

e EventArgs

OnItemDataBound(EventArgs)

protected virtual void OnItemDataBound(EventArgs e)

Parameters

e EventArgs

OnItemReorder(ReorderListItemReorderEventArgs)

protected virtual void OnItemReorder(ReorderListItemReorderEventArgs e)

Parameters

e ReorderListItemReorderEventArgs

OnPreRender(EventArgs)

protected override void OnPreRender(EventArgs e)

Parameters

e EventArgs

OnUpdateCommand(EventArgs)

protected virtual void OnUpdateCommand(EventArgs e)

Parameters

e EventArgs

PerformDataBinding(IEnumerable)

protected override void PerformDataBinding(IEnumerable data)

Parameters

data IEnumerable

RaisePostBackEvent(string)

protected void RaisePostBackEvent(string eventArgument)

Parameters

eventArgument string

RenderContents(HtmlTextWriter)

protected override void RenderContents(HtmlTextWriter writer)

Parameters

writer HtmlTextWriter

RenderItem(ListItemType, int, RepeatInfo, HtmlTextWriter)

public void RenderItem(ListItemType itemType, int repeatIndex, RepeatInfo repeatInfo, HtmlTextWriter writer)

Parameters

itemType ListItemType
repeatIndex int
repeatInfo RepeatInfo
writer HtmlTextWriter

SetPropertyValue<V>(string, V)

protected void SetPropertyValue<V>(string propertyName, V value)

Parameters

propertyName string
value V

Type Parameters

V

UpdateItem(int)

public void UpdateItem(int rowIndex)

Parameters

rowIndex int

Events

CancelCommand

public event EventHandler<ReorderListCommandEventArgs> CancelCommand

Event Type

EventHandler<ReorderListCommandEventArgs>

DeleteCommand

public event EventHandler<ReorderListCommandEventArgs> DeleteCommand

Event Type

EventHandler<ReorderListCommandEventArgs>

EditCommand

public event EventHandler<ReorderListCommandEventArgs> EditCommand

Event Type

EventHandler<ReorderListCommandEventArgs>

InsertCommand

public event EventHandler<ReorderListCommandEventArgs> InsertCommand

Event Type

EventHandler<ReorderListCommandEventArgs>

ItemCommand

public event EventHandler<ReorderListCommandEventArgs> ItemCommand

Event Type

EventHandler<ReorderListCommandEventArgs>

ItemCreated

public event EventHandler<ReorderListItemEventArgs> ItemCreated

Event Type

EventHandler<ReorderListItemEventArgs>

ItemDataBound

public event EventHandler<ReorderListItemEventArgs> ItemDataBound

Event Type

EventHandler<ReorderListItemEventArgs>

ItemReorder

public event EventHandler<ReorderListItemReorderEventArgs> ItemReorder

Event Type

EventHandler<ReorderListItemReorderEventArgs>

UpdateCommand

public event EventHandler<ReorderListCommandEventArgs> UpdateCommand

Event Type

EventHandler<ReorderListCommandEventArgs>