Previous | Home | Next |
ReorderList is an ASP.NET AJAX control that implements a bulleted, data-bound list with items that can be reordered interactively.This is useful if the data is only to be ordered.The ReorderList is a very powerful piece of the ASP.NET AJAX Control Toolkit. It gives you the ability to interactively reorder a list of items.The ReorderList can handle reorders in two ways, either via a callback or via a postback.the ReorderList can automatically perform reorders.
If the data you are displaying has a field that determines sort order (e.g. the select query is sorted by this column), and that column is of an integer type and if its SortOrderField property is set. The ReorderList can also bind to any data source that implements IList (such as Arrays).
Properties
Property | Description |
DataSourceID | DataSourceID is used to populate this control. |
AllowReorder | whether to allow drag/drop reordering. This is automatically set to true if a ReorderTemplate is present. |
ItemTemplate | It is used as a template to display for items in the list. |
EditItemTemplate | It is used to to display for a row that is in edit mode as a template. |
ReorderTemplate | It is used as the template to show the drop location when doing a reorder operation. This template is not data bindable. |
InsertItemTemplate | It is used to show for adding new items to the list. |
DataKeyField | DataKeyField is The primary key field for the data. |
SortOrderField | SortOrderField is the field that represents the sort order of the items. |
ItemInsertLocation | It Determines where new items are inserted into the list, can be Beginning or End. |
DragHandleAlignment | Where the drag handle should be relative to the item rowcan be "Top", "Bottom", "Left", or "Right". |
DragHandleTemplate | It is used to drag handle that the user clicks and drags to reorder items. |
EmptyListTemplate | It is used to show when the list has no data. This item is not data-bindable. |
PostbackOnReorder | It Determines if reorders initiate a postback or callback. To use any edit or delete functionality of a data-bound list, postbacks must be enabled. |
Previous | Home | Next |