Click or drag to resize
DataItemCollection Class
DataItemCollection.
Inheritance Hierarchy
SystemObject
  Telerik.Windows.DataDataItemCollection

Namespace: Telerik.Windows.Data
Assembly: Telerik.Windows.Data (in Telerik.Windows.Data.dll) Version: 2017.2.614.40 (2017.2.614.40)
Syntax
public class DataItemCollection : IList, 
	ICollection, IQueryableCollectionView, IItemProperties, IEditableCollectionViewAddNewItem, IEditableCollectionView, 
	ICollectionView, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged, IPagedCollectionView

The DataItemCollection type exposes the following members.

Methods
  NameDescription
Public methodAdd
Adds an item to the IList.
Public methodAddNew
Adds a new item to the collection.
Public methodAddNewItem
Adds the specified object to the collection.
Public methodCancelEdit
Ends the edit transaction and discards any pending changes to the item.
Public methodCancelNew
Ends the add transaction and discards the pending new item.
Public methodClear
Removes all items from the IList.
Public methodCommitEdit
Ends the edit transaction and saves the pending changes.
Public methodCommitNew
Ends the add transaction and saves the pending new item.
Public methodContains
Determines whether the IList contains a specific value.
Public methodCopyTo
Copies the elements of the ICollection to an Array, starting at a particular Array index.
Public methodDeferRefresh
Enters a defer cycle that you can use to merge changes to the view and delay automatic refresh.
Public methodEditItem
Begins an edit transaction of the specified item.
Public methodGetEnumerator
Returns an enumerator that iterates through a collection.
Public methodIndexOf
Determines the index of a specific item in the IList.
Public methodInsert
Inserts an item to the IList at the specified index.
Public methodMoveCurrentTo
Sets the specified item to be the CurrentItem in the view.
Public methodMoveCurrentToFirst
Sets the first item in the view as the CurrentItem.
Public methodMoveCurrentToLast
Sets the last item in the view as the CurrentItem.
Public methodMoveCurrentToNext
Sets the item after the CurrentItem in the view as the CurrentItem.
Public methodMoveCurrentToPosition
Sets the item at the specified index to be the CurrentItem in the view.
Public methodMoveCurrentToPrevious
Sets the item before the CurrentItem in the view as the CurrentItem.
Public methodMoveToFirstPage
Sets the first page as the current page.
Public methodMoveToLastPage
Sets the last page as the current page.
Public methodMoveToNextPage
Moves to the page after the current page.
Public methodMoveToPage
Requests a page move to the page at the specified index.
Public methodMoveToPreviousPage
Moves to the page before the current page.
Protected methodOnPropertyChanged
Raises the [E:PropertyChanged] event.
Public methodRefresh
Recreates the view.
Public methodRemove
Removes the specified item from the collection.
Public methodRemoveAt
Removes the item at the specified position from the collection.
Top
Extension Methods
  NameDescription
Public Extension MethodAddRange
Adds the elements from the specified collection - items to the end of the target list.
(Defined by CollectionExtensions.)
Public Extension MethodRemoveAllOverloaded.
Removes all items from the list. As opposed to Clear method raise CollectionChanged event with action Remove and OldItems property set.
(Defined by IListExtensions.)
Public Extension MethodRemoveAll(PredicateObject)Overloaded.
Removes all elements from a list that match the condition defined by the specified predicate.
(Defined by CollectionExtensions.)
Top
Properties
  NameDescription
Public propertyCanAddNew
Gets a value that indicates whether a new item can be added to the collection.
Public propertyCanAddNewItem
Gets a value that indicates whether a specified object can be added to the collection.
Public propertyCanCancelEdit
Gets a value that indicates whether the editing of an item can be canceled.
Public propertyCanChangePage
Gets a value that indicates whether the PageIndex value can change.
Public propertyCanFilter
Gets a value that indicates whether this view supports filtering via the Filter property.
Public propertyCanGroup
Gets a value that indicates whether this view supports grouping via the GroupDescriptions property.
Public propertyCanRemove
Gets a value that indicates whether an item can be removed from the collection.
Public propertyCanSort
Gets a value that indicates whether this view supports sorting via the SortDescriptions property.
Public propertyCount
Gets the number of elements contained in the ICollection.
Public propertyCulture
Gets or sets the cultural info for any operations of the view that may differ by culture, such as sorting.
Public propertyCurrentAddItem
Gets the item that is being added during the current add transaction.
Public propertyCurrentEditItem
Gets the item in the collection that is being edited.
Public propertyCurrentItem
Gets the current item in the view.
Public propertyCurrentPosition
Gets the ordinal position of the CurrentItem within the view.
Public propertyDescriptorsSynchronizationMode
Gets or sets a value that controls how this DataItemCollection synchronizes its FilterDescriptors, GroupDescriptor and SortDescriptors, as well as GroupDescription and SortDescriptions (if applicable), with its source.
Public propertyFilter
Gets or sets a callback used to determine if an item is suitable for inclusion in the view.
Public propertyFilterDescriptors
Gets the filter descriptors used for filtering operations.
Public propertyGroupDescriptions
Gets a collection of GroupDescription objects that describe how the items in the collection are grouped in the view.
Public propertyGroupDescriptors
Gets the group descriptors used for grouping operations.
Public propertyGroups
Gets the top-level groups.
Public propertyIsAddingNew
Gets a value that indicates whether an add transaction is in progress.
Public propertyIsCurrentAfterLast
Gets a value that indicates whether the CurrentItem of the view is beyond the end of the collection.
Public propertyIsCurrentBeforeFirst
Gets a value that indicates whether the CurrentItem of the view is beyond the beginning of the collection.
Public propertyIsEditingItem
Gets a value that indicates whether an edit transaction is in progress.
Public propertyIsEmpty
Returns a value that indicates whether the resulting view is empty.
Public propertyIsPageChanging
Gets a value that indicates whether a page index change is in process.
Public propertyItem
Gets or sets the Object at the specified index.
Public propertyItemCount
Gets the minimum number of items known to be in the source collection.
Public propertyItemProperties
Gets a collection of objects that describes the properties of the items in the collection.
Public propertyItemPropertiesByPropertyName
Gets a dictionary of objects that describes the properties of the items in the collection by property name.
Public propertyItemType
Gets or sets the type used for all internal data engine operations.
Public propertyNewItemPlaceholderPosition
Gets or sets the position of the new item placeholder in the collection.
Public propertyPageIndex
Gets the zero-based index of the current page.
Public propertyPageSize
Gets or sets the number of items to display on a page.
Public propertySortDescriptions
Gets a collection of SortDescription objects that describe how the items in the collection are sorted in the view.
Public propertySortDescriptors
Gets the sort descriptors used for sorting operations.
Public propertySourceCollection
Returns the underlying collection.
Public propertyTotalItemCount
Gets the total number of items in the source collection, or -1 if the total number is unknown.
Top
Events
  NameDescription
Public eventCollectionChanged
Occurs when the collection changes.
Public eventCurrentChanged
When implementing this interface, raise this event after the current item has been changed.
Public eventCurrentChanging
When implementing this interface, raise this event before changing the current item. Event handler can cancel this event.
Public eventGroupCollectionChanged
This is for internal use only and is not intended to be used directly from your code.
Public eventPageChanged
Occurs when the PageIndex has changed.
Public eventPageChanging
Occurs when the PageIndex is changing.
Public eventPropertyChanged
Occurs when a property value changes.
Top
See Also