Class TreeGridPagedCollectionView
Represents a class that maintains the implementation of TreeGridPagedCollectionView in SfTreeGrid.
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.TreeGrid
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public class TreeGridPagedCollectionView : TreeGridQueryableView, ITreeGridViewNotifier, IEditableCollectionView, IDisposable, IPagedCollectionView, IEnumerable
Constructors
TreeGridPagedCollectionView(IEnumerable, SfTreeGrid)
Initializes a new instance of TreeGridPagedCollectionView with the specified source and the SfTreeGrid.
Declaration
public TreeGridPagedCollectionView(IEnumerable source, SfTreeGrid treeGrid)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.IEnumerable | source | The source. |
| SfTreeGrid | treeGrid | The sfTreeGrid. |
Methods
add_PageChanged(PageChangedEventHandler)
Declaration
public void add_PageChanged(PageChangedEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| PageChangedEventHandler | value |
add_PageChanging(PageChangingEventHandler)
Declaration
public void add_PageChanging(PageChangingEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| PageChangingEventHandler | value |
AttachTreeView(Object)
Associates treeGrid in view.
Declaration
public override void AttachTreeView(object treeGrid)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | treeGrid |
Overrides
DetachTreeView()
Detach the grid instance present in the view while disposing the view.
Declaration
public override void DetachTreeView()
Overrides
GetEnumerator()
Declaration
public IEnumerator GetEnumerator()
Returns
| Type |
|---|
| System.Collections.IEnumerator |
LoadDynamicItems(Int32, IEnumerable)
Declaration
public void LoadDynamicItems(int startIndex, IEnumerable items)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | startIndex | |
| System.Collections.IEnumerable | items |
remove_PageChanged(PageChangedEventHandler)
Declaration
public void remove_PageChanged(PageChangedEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| PageChangedEventHandler | value |
remove_PageChanging(PageChangingEventHandler)
Declaration
public void remove_PageChanging(PageChangingEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| PageChangingEventHandler | value |
ResetCache()
Clears the cache while using OnDemandPaging.
Declaration
public void ResetCache()
Remarks
While navigating between pages, records are loaded through OnDemandLoading event and the loaded records will be maintained in cache. If you navigate to already navigated page, then records are loaded from cache and the OnDemandLoading event will not fire for that corresponding page. You can clear the cache by using this method and now the OnDemandLoading event will be raised when you navigate to the same page. And the records will be loaded through event instead of loading from cache.
ResetCacheForPage(Int32)
Reset the cache to the given page index.
Declaration
public void ResetCacheForPage(int pageIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | pageIndex | Index of the page to reset its cache. |
See Also
UpdateNodesOnPropertyChange(Object, PropertyChangedEventArgs, TreeNode)
Check TreeGridView on property changes and do the actions.
Declaration
protected override void UpdateNodesOnPropertyChange(object sender, PropertyChangedEventArgs e, TreeNode treeNode = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | updated record. |
| System.ComponentModel.PropertyChangedEventArgs | e | PropertyChangedEventArgs. |
| TreeNode | treeNode | Tree node. |
Overrides
Events
PageChanged
Occurs when the page is changed.
Declaration
public event PageChangedEventHandler PageChanged
Event Type
| Type |
|---|
| PageChangedEventHandler |
PageChanging
Occurs when the page is changing.
Declaration
public event PageChangingEventHandler PageChanging
Event Type
| Type |
|---|
| PageChangingEventHandler |