Class VirtualizingCollectionView
Represents a view for grouping, sorting, filtering, and navigating a data collection in on-demand.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Data
Assembly: Syncfusion.Data.WinUI.dll
Syntax
public class VirtualizingCollectionView : QueryableCollectionView, ICollectionViewAdv, ICollectionView, IObservableVector<object>, IList<object>, ICollection<object>, IEnumerable<object>, IEnumerable, INotifyPropertyChanged, ISupportInitialize, IDisposable, IEditableCollectionView, IUnboundExpressionFunc, IGridViewNotifier, IFilterPredicateExpression, IParallelizableViewConstructors
VirtualizingCollectionView()
Initializes new instance of VirtualizingCollectionView class.
Declaration
public VirtualizingCollectionView()VirtualizingCollectionView(IEnumerable)
Initializes a new instance of VirtualizingCollectionView class.
Declaration
public VirtualizingCollectionView(IEnumerable source)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Collections.IEnumerable | source | 
Methods
ApplyFilter(Predicate<Object>)
Applies filter based on specified RowFilter.
Declaration
protected virtual void ApplyFilter(Predicate<object> rowFilter)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Predicate<System.Object> | rowFilter | Specifies the RowFilter to apply filter on collection | 
CreateRecords()
Creates a record for items in the ViewSource.
Declaration
protected override sealed RecordsList CreateRecords()Returns
| Type | Description | 
|---|---|
| RecordsList | Record for items in the ViewSource. | 
Overrides
CreateRowFilterPredicate()
Creates a row filter predicate which filters the items to be displayed in the view.
Declaration
protected override void CreateRowFilterPredicate()Overrides
CreateTopLevelGroup()
Creates a Top Level Group.
Declaration
protected override TopLevelGroup CreateTopLevelGroup()Returns
| Type | Description | 
|---|---|
| TopLevelGroup | A top level group. | 
Overrides
GetGroupedSource(String[])
Gets the grouped result by specified properties.
Declaration
protected virtual IEnumerable<GroupResult> GetGroupedSource(string[] groupBy)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String[] | groupBy | Specifies the properties to get the group result on collection | 
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<GroupResult> | Returns the collection of GroupResult. | 
GetGroupResult(String[])
Gets the IEnumerable collection of GroupResult for the array of groupBy.
Declaration
protected override sealed IEnumerable<GroupResult> GetGroupResult(string[] groupBy)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String[] | groupBy | 
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<GroupResult> | the IEnumerable collection of GroupResult for the array of  | 
Overrides
GetIndexOf(Object)
Gets the index at which the specified item is located.
Declaration
protected virtual int GetIndexOf(object item)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | item | Specifies the item to get the index | 
Returns
| Type | Description | 
|---|---|
| System.Int32 | Returns the index at which the specified item is located | 
GetItemProperties()
Gets the Collection of ItemProperies that contains,the property and its information.
Declaration
public override PropertyInfoCollection GetItemProperties()Returns
| Type | Description | 
|---|---|
| PropertyInfoCollection | the Collection of ItemProperies that contains,the property and its information. | 
Overrides
GetSourceList()
Gets the SourceCollection to load items source in FilterPop-up control.
Declaration
public virtual IEnumerable GetSourceList()Returns
| Type | Description | 
|---|---|
| System.Collections.IEnumerable | Returns the source that were in view. Used in GridFilterControl. Other CollectionViewAdv returns source from CollectionViewAdv.Records. | 
IndexOf(Object)
Gets the index of the given item.
Declaration
public override int IndexOf(object item)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | item | 
Returns
| Type | Description | 
|---|---|
| System.Int32 | the index of the given item. | 
Overrides
OnSortDescriptionChanged(NotifyCollectionChangedEventArgs)
Invoked When the Sort Description Collection is Changed.
Declaration
protected override sealed void OnSortDescriptionChanged(NotifyCollectionChangedEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Collections.Specialized.NotifyCollectionChangedEventArgs | e | 
Overrides
ProcessSort(SortDescriptionCollection)
Sorts the elements in the collection based on specified sort description.
Declaration
protected virtual void ProcessSort(SortDescriptionCollection sortDescription)Parameters
| Type | Name | Description | 
|---|---|---|
| SortDescriptionCollection | sortDescription | Specifies the sort description to sort the collection | 
RefreshSort()
Refreshes the sorting in the view.
Declaration
protected override sealed void RefreshSort()Overrides
ResetFilter()
Resets the filter of the Collection View.
Declaration
protected override void ResetFilter()Overrides
SetSource(IEnumerable)
Sets the Source of the collection view.
Declaration
protected override void SetSource(IEnumerable _source)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Collections.IEnumerable | _source |