[]
        
(Showing Draft Content)

C1.DataCollection.IDataCollectionEx

IDataCollectionEx Class

Extension methods for IDataCollection<T>.

Inheritance
IDataCollectionEx
Namespace: C1.DataCollection
Assembly: C1.DataCollection.dll
Syntax
public static class IDataCollectionEx

Methods

Name Description
AddAsync<T>(IDataCollection<T>, T)

Adds the specified item to the collection.

AddAsync<T>(IDataCollection<T>, T, CancellationToken)

Adds the specified item to the collection.

AddRangeAsync<T>(IDataCollection<T>, IReadOnlyList<T>, CancellationToken)

Adds the specified item to the collection.

AsDataCollection<T>(IEnumerable<T>)

Wraps an IEnumerable into a data collection.

AsDataCollection<T>(IEnumerable)

Wraps an IEnumerable into a data collection.

AsList<T>(IDataCollection<T>)

Gets a list wrapping this data collection.

AttachFilterChanged<T>(IDataCollection<T>, EventHandler)

Attaches the specified handler to the filter changed event.

AttachGroupChanged<T>(IDataCollection<T>, EventHandler)

Attaches the specified handler to the group changed event.

AttachPageChanged<T>(IDataCollection<T>, EventHandler)

Attaches the specified handler to the page changed event.

AttachSortChanged<T>(IDataCollection<T>, EventHandler)

Attaches the specified handler to the sort changed event.

CanFilter<T>(IDataCollection<T>, FilterExpression?)

Returns whether the data collection is able to filter the specified expression.

CanGroup<T>(IDataCollection<T>, params GroupDescription[])

Returns true if the data collection supports sorting.

CanGroup<T>(IDataCollection<T>, string)

Returns true if the data collection supports sorting.

CanInsertRange<T>(IDataCollection<T>, int, IEnumerable<T>)

Determines whether a new range of items can be inserted in the collection at the specified index.

CanInsert<T>(IDataCollection<T>, int, T)

Determines whether a new item can be inserted in the collection at the specified index.

CanLoadMoreItems<T>(IDataCollection<T>)

Returns true if the data collection can load items on demand.

CanMoveRange<T>(IDataCollection<T>, int, int, int)

Determines whether the item at fromIndex can be moved to toIndex.

CanMove<T>(IDataCollection<T>, int, int)

Determines whether the item at fromIndex can be moved to toIndex.

CanRefresh<T>(IDataCollection<T>)

Returns true if the data collection can be refreshed.

CanRemoveRange<T>(IDataCollection<T>, int, int)

Determines whether the items at the specified index can be removed from the collection.

CanRemove<T>(IDataCollection<T>, int)

Determines whether the item at the specified index can be removed from the collection.

CanReplaceRange<T>(IDataCollection<T>, int, IEnumerable<T>)

Determines whether the items at the specified index can be replaced in the collection.

CanReplace<T>(IDataCollection<T>, int, T)

Determines whether the item at the specified index can be replaced in the collection.

CanSort<T>(IDataCollection<T>, params SortDescription[])

Returns true if the data collection supports sorting.

CanSort<T>(IDataCollection<T>, string)

Returns true if the data collection supports sorting.

CanSort<T>(IDataCollection<T>, string, SortDirection)

Returns true if the data collection supports sorting.

ConnectAsync<T>(IDataCollection<T>, CancellationToken)

Connects the collection to the source.

CreateFilterFromString<T>(IDataCollection<T>, string, bool, bool, bool, bool)

Creates a FilterExpression from a query string.

CreateNewItem<T>(IDataCollection<T>)

Creates a new item of the collection.

CreatePredicate<T>(IDataCollection<T>, FilterExpression?, FilterCache?)

Creates the predicate from the filterExpression.

DetachFilterChanged<T>(IDataCollection<T>, EventHandler)

Detaches the specified handler from the filter changed event.

DetachGroupChanged<T>(IDataCollection<T>, EventHandler)

Detaches the specified handler from the group changed event.

DetachPageChanged<T>(IDataCollection<T>, EventHandler)

Detaches the specified handler to the page changed event.

DetachSortChanged<T>(IDataCollection<T>, EventHandler)

Detaches the specified handler from the sort changed event.

DisconnectAsync<T>(IDataCollection<T>, CancellationToken)

Disconnects the collection from the source.

FilterAsync<T>(IDataCollection<T>, FilterExpression?)

Filters the data using specified filter expression.

FilterAsync<T>(IDataCollection<T>, FilterExpression?, CancellationToken)

Filters the data using specified filter expression.

FilterAsync<T>(IDataCollection<T>, Func<object, bool>)

Filters the data from a query string.

FilterAsync<T>(IDataCollection<T>, Expression<Func<T, object>>, FilterOperation, object)

Filters the data using specified filter parameters.

FilterAsync<T>(IDataCollection<T>, string, FilterOperation, object)

Filters the data using specified filter parameters.

FilterAsync<T>(IDataCollection<T>, string, bool, bool, bool, bool)

Filters the data from a query string.

GetConnectionState<T>(IDataCollection<T>)

Gets the state of the connection to the source, or Connected if the collection doesn't implement the ISupportConnection interface.

GetCurrentPage<T>(IDataCollection<T>)

Gets the current page number.

GetFilterExpression<T>(IDataCollection<T>)

Returns a the current filter expression.

GetGroupDescriptions<T>(IDataCollection<T>)

Returns a list of the current group descriptions.

GetLoadedItems<T>(IDataCollection<T>, int?, int?)

Returns all the items that has be loaded so far.

GetPageSize<T>(IDataCollection<T>)

Gets the maximum number of items per page.

GetPagesCount<T>(IDataCollection<T>)

Gets the number of pages.

GetSortDescriptions<T>(IDataCollection<T>)

Returns a list of the current sort descriptions.

GetSource<T>(IDataCollection<T>)

Gets the original source of the data.

GetTextFields<T>(IDataCollection<T>, bool)

Gets the text fields of the items of this data collection.

GetTotalCount<T>(IDataCollection<T>)

Gets the total number of items in the collection.

GroupAsync<T>(IDataCollection<T>, GroupDescription[])

Groups the data collection according to the specified group descriptions.

GroupAsync<T>(IDataCollection<T>, GroupDescription[], CancellationToken)

Groups the data collection according to the specified group descriptions.

GroupAsync<T>(IDataCollection<T>, Expression<Func<T, object>>)

Groups the data collection according to the specified group path.

GroupAsync<T>(IDataCollection<T>, params string[])

Groups the data collection according to the specified group fields.

IndexOf<T>(IDataCollection<T>, T)

Gets the index of the specified item.

InsertAsync<T>(IDataCollection<T>, int, T)

Inserts the specified item at the specified index in the collection.

InsertAsync<T>(IDataCollection<T>, int, T, CancellationToken)

Inserts the specified item at the specified index in the collection.

InsertRangeAsync<T>(IDataCollection<T>, int, IEnumerable<T>, CancellationToken)

Inserts the specified item at the specified index in the collection.

IsPaginated<T>(IDataCollection<T>)

Returns true if the data collection is paginated.

IsVirtualizing<T>(IDataCollection<T>)

Returns true if the data collection is virtualizing the data.

LoadAsync<T>(IDataCollection<T>, int?, int?, CancellationToken)

Load the items between the specified indexes.

LoadMoreItemsAsync<T>(IDataCollection<T>, int?, CancellationToken)

Loads more items.

MoveAsync<T>(IDataCollection<T>, int, int)

Moves an item from the specified position to the new one.

MoveAsync<T>(IDataCollection<T>, int, int, CancellationToken)

Moves an item from the specified position to the new one.

MoveRangeAsync<T>(IDataCollection<T>, int, int, int, CancellationToken)

Moves the items specified by fromIndex and count to the new toIndex position.

MoveToPageAsync<T>(IDataCollection<T>, int, CancellationToken)

Moves to the page pageIndex.

NeedsLoadAsync<T>(IDataCollection<T>)

Returns true if the data collection needs loading the items asynchronously.

RefreshAsync<T>(IDataCollection<T>)

Refreshes the data collection.

RemoveAsync<T>(IDataCollection<T>, int)

Removes the item at the specified index from the collection.

RemoveAsync<T>(IDataCollection<T>, int, CancellationToken)

Removes the item at the specified index from the collection.

RemoveFilterAsync<T>(IDataCollection<T>)

Removes any filter applied to the collection previously.

RemoveRangeAsync<T>(IDataCollection<T>, int, int, CancellationToken)

Removes the items at the specified index from the collection.

ReplaceAsync<T>(IDataCollection<T>, int, T)

Replaces the item at the specified index by the specified item.

ReplaceAsync<T>(IDataCollection<T>, int, T, CancellationToken)

Replaces the item at the specified index by the specified item.

ReplaceRangeAsync<T>(IDataCollection<T>, int, IEnumerable<T>, CancellationToken)

Replaces the items at the specified index by the specified items.

SetPageSize<T>(IDataCollection<T>, int)

Sets the maximum number of items per page.

SortAsync<T>(IDataCollection<T>, params SortDescription[])

Sorts the data collection according to the specified sort descriptions.

SortAsync<T>(IDataCollection<T>, SortDescription[], CancellationToken)

Sorts the data collection according to the specified sort descriptions.

SortAsync<T>(IDataCollection<T>, Expression<Func<T, object>>, SortDirection)

Sorts the data collection according to the specified sort path and direction.

SortAsync<T>(IDataCollection<T>, string, SortDirection)

Sorts the data collection according to the specified sort parameters.

ToDataCollection<T>(IEnumerable<T>)

Wraps an IEnumerable into a data collection.

ToDataCollection<T>(IEnumerable)

Wraps an IEnumerable into a data collection.