Property | Type | Description | |
---|---|---|---|
AddCachingActions | IEnumerable |
||
BeginTrackPageLoading | void | ||
BuildFilteredQuery | EntityQuery | ||
BuildOrderedQuery | EntityQuery | ||
DoGrouping | void | ||
DoInitialLoad | void | ||
EndTrackPageLoading | void | ||
EntityQueryPagedCollectionView | IdeaBlade.Core | ||
GetLookAheadCount | int | ||
GetMemberExpression | |||
GetScalarQuery | IEntityScalarQuery | ||
GetSortDescriptionList | IList |
||
GetTryRefreshPosition | int | ||
IndexToUserState | string | ||
InitFields | void | ||
InitialLoadCore | IEnumerable |
||
IsPageLoadOutstanding | bool | ||
LoadPage | void | ||
LoadPageComplete | void | ||
MakePagedQuery | IEntityQuery | ||
OnPageLoadError | |||
ReloadCurrentPage | void | ||
RemoveItemFromList | void | ||
SetCurrentInfo | bool | ||
SetTotalItemCount | void | ||
ShouldLoadLookAheadPage | bool | ||
UserStateToIndex | int |
Method | Description | |
---|---|---|
AddNew ( ) : object |
Creates an item and adds it to the collection for editing. Calls BeginEdit if the item implements IEditableObject. |
|
CancelEdit ( ) : void |
Cancels editing of the CurrentEditItem. Calls CancelEdit if the item implements IEditableObject. |
|
CancelNew ( ) : void |
Cancels editing of the CurrentAddItem. Calls CancelEdit if the item implements IEditableObject. |
|
ClearQueryFilter ( ) : void |
Can be used to clear the filter. After clearing the filter, call Refresh to re-query and load the view. Calling either of the SetQueryFilter(IPredicateDescription) overloads with a null value will also clear the filter. |
|
CommitEdit ( ) : void |
Completes editing of the CurrentEditItem. Calls EndEdit if the item implements IEditableObject. |
|
CommitNew ( ) : void |
Completes editing of the CurrentAddItem. Calls EndEdit if the item implements IEditableObject. |
|
Contains ( object item ) : bool |
Returns true if the current page contains the specified item.
|
|
DeferRefresh ( ) : IDisposable |
Called by bound controls when data should be refreshed.
|
|
EditItem ( object item ) : void |
Make an item the CurrentEditItem. If the item implements IEditableObject BeginEdit is called. |
|
EntityQueryPagedCollectionView ( EntityQuery query, int pageSize ) : IdeaBlade.Core |
Create an instance of this class. Specify the query which will be executed asynchronously to provide paged results. The "load size", the number of items loaded as each page is request, will default to twice the pageSize value. |
|
EntityQueryPagedCollectionView ( EntityQuery query, int pageSize, int loadSize ) : IdeaBlade.Core |
Creates an instance of this class. Specify the query which will be executed asynchronously to provide paged results. Set pageSize and loadSize to control the number of items displayed and loaded during a page request. If loadSize is a multiple of pageSize then "look ahead" queries are performed to cache page results. |
|
EntityQueryPagedCollectionView ( EntityQuery query, int pageSize, int loadSize, bool deferLoad, bool addPrimaryKeySort ) : IdeaBlade.Core |
Create a new instance of this class. Specify the query which will be executed asynchronously to provide paged results. If the first page should not be immediately loaded set deferLoad to true, and call Refresh() when ready to retrieve data. |
|
GetEnumerator ( ) : IEnumerator |
Returns the collection enumerator.
|
|
MoveCurrentTo ( object item ) : bool |
Selects the indicated item as the CurrentItem.
|
|
MoveCurrentToFirst ( ) : bool |
Selects the item at position 0 as the CurrentItem.
|
|
MoveCurrentToLast ( ) : bool |
Selects the last item on the page as the CurrentItem.
|
|
MoveCurrentToNext ( ) : bool |
Selects the next item as the CurrentItem.
|
|
MoveCurrentToPosition ( int position ) : bool |
Moves the CurrentPosition to the position indicated.
|
|
MoveCurrentToPrevious ( ) : bool |
Selects the previous item as the CurrentItem.
|
|
MoveToFirstPage ( ) : bool |
Move to the first page in the collection.
|
|
MoveToLastPage ( ) : bool |
Move to the last page in the collection.
|
|
MoveToNextPage ( ) : bool |
Move to the next page in the collection.
|
|
MoveToPage ( int pageIndex ) : bool |
Move to the specified 0-based page index.
|
|
MoveToPreviousPage ( ) : bool |
Move to the previous page in the collection.
|
|
Refresh ( ) : void |
Re-create the view, using any SortDescriptions, GroupDescriptions and/or filter. Call Refresh if the EntityQueryPagedCollectionView was created with deferred loading. |
|
RefreshCurrentPage ( ) : void |
Reload the current page.
|
|
Remove ( object item ) : void |
Removes an item from the page and calls Delete on the item.
|
|
RemoveAt ( int index ) : void |
Removes the item at the specified row index and calls Delete on the item.
|
|
SetQueryFilter ( System.Linq.Expressions expression ) : void |
Set a filter for this view. After setting the filter, call Refresh to re-query and load the view. |
|
SetQueryFilter ( IPredicateDescription predicateDescription ) : void |
Set a filter for this view. The filter can be a simple or composite predicate. See the PredicateDescription and PredicateBuilder for more information on building dynamic filter criteria. After setting the filter, call Refresh to re-query and load the view. |
Method | Description | |
---|---|---|
OnCollectionChanged ( NotifyCollectionChangedAction action, object item, int index ) : void |
Fires CollectionChanged.
|
|
OnCurrentChanged ( ) : void |
Fires CurrentChanged.
|
|
OnCurrentChanging ( ) : bool |
Fires CurrentChanging.
|
|
OnPageChanged ( ) : void |
Fires PageChanged.
|
|
OnPageChanging ( int newPageIndex ) : bool |
Fires PageChanging event.
|
|
OnPropertyChanged ( string propertyName ) : void |
Fires PropertyChanged.
|
Method | Description | |
---|---|---|
AddCachingActions ( int requestedPageIndex, bool includeRequestedPage ) : IEnumerable |
||
BeginTrackPageLoading ( int pageIndex ) : void | ||
BuildFilteredQuery ( ) : EntityQuery | ||
BuildOrderedQuery ( ) : EntityQuery |
Build a query with OrderBy, ThenBy operators.
|
|
DoGrouping ( ) : void | ||
DoInitialLoad ( ) : void | ||
EndTrackPageLoading ( int pageIndex ) : void | ||
EntityQueryPagedCollectionView ( EntityQuery query, int pageSize, int loadSize, SortDescriptionCollection sortDescriptors, ObservableCollection |
||
GetLookAheadCount ( int pageSize, int loadSize ) : int | ||
GetMemberExpression ( System.Linq.Expressions parm, string path ) : |
||
GetScalarQuery ( ) : IEntityScalarQuery |
Build a scalar query from the original query.
|
|
GetSortDescriptionList ( ) : IList |
||
GetTryRefreshPosition ( ) : int | ||
IndexToUserState ( int index ) : string | ||
InitFields ( ) : void | ||
InitialLoadCore ( int beginPageIndex, bool getTotal ) : IEnumerable |
||
IsPageLoadOutstanding ( int pageIndex ) : bool | ||
LoadPage ( int pageIndex ) : void | ||
LoadPageComplete ( EntityQueryOperation args ) : void | ||
MakePagedQuery ( int requestedPageIndex ) : IEntityQuery |
Build a paged query based on the current ordered query.
|
|
OnPageLoadError ( IBaseOperation op ) : |
||
ReloadCurrentPage ( ) : void | ||
RemoveItemFromList ( object item, bool isNew ) : void | ||
SetCurrentInfo ( int newPosition ) : bool | ||
SetTotalItemCount ( int count ) : void | ||
ShouldLoadLookAheadPage ( int pageIndex ) : bool | ||
UserStateToIndex ( object userState ) : int |
public EntityQueryPagedCollectionView ( EntityQuery query, int pageSize ) : IdeaBlade.Core | ||
query | EntityQuery | The query providing the results to the collection |
pageSize | int | The number of items to be displayed per page |
return | IdeaBlade.Core |
public EntityQueryPagedCollectionView ( EntityQuery query, int pageSize, int loadSize ) : IdeaBlade.Core | ||
query | EntityQuery | The query providing the results to the collection |
pageSize | int | The number of items to be displayed per page |
loadSize | int | The number of items to be loaded when a page is requested |
return | IdeaBlade.Core |
public EntityQueryPagedCollectionView ( EntityQuery query, int pageSize, int loadSize, bool deferLoad, bool addPrimaryKeySort ) : IdeaBlade.Core | ||
query | EntityQuery | The query providing the results to the collection |
pageSize | int | The number of items to be displayed per page |
loadSize | int | The number of items to be loaded when a page is requested |
deferLoad | bool | Whether to defer load |
addPrimaryKeySort | bool | Whether the data should be sorted on primary key |
return | IdeaBlade.Core |
public MoveCurrentToPosition ( int position ) : bool | ||
position | int | |
return | bool |
protected OnCollectionChanged ( NotifyCollectionChangedAction action, object item, int index ) : void | ||
action | NotifyCollectionChangedAction | |
item | object | |
index | int | |
return | void |
protected OnPageChanging ( int newPageIndex ) : bool | ||
newPageIndex | int | |
return | bool |
protected OnPropertyChanged ( string propertyName ) : void | ||
propertyName | string | |
return | void |
public SetQueryFilter ( System.Linq.Expressions expression ) : void | ||
expression | System.Linq.Expressions | |
return | void |
public SetQueryFilter ( IPredicateDescription predicateDescription ) : void | ||
predicateDescription | IPredicateDescription | |
return | void |