Supplies self-referencing rows on demand through RowSourceNeeded for an unbound template. Non-empty top-level rows are cached until ResetRowsCache() is called.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class GridViewSelfReferenceLoadOnDemandDataProvider : GridViewHierarchyDataProvider, IDisposable
Inheritance: objectGridViewHierarchyDataProviderGridViewSelfReferenceLoadOnDemandDataProvider
Implements:
Inherited Members
Constructors
Initializes a provider that requests root and child rows through the template's row-source event.
public GridViewSelfReferenceLoadOnDemandDataProvider(GridViewTemplate template)
The unbound template whose rows are supplied on demand.
Exceptions: InvalidOperationExceptionThe template is data-bound.
Properties
Methods
Requests rows for a parent through RowSourceNeeded; non-empty root rows are cached.
public override IList<GridViewRowInfo> GetChildRows(GridViewRowInfo parentRow, GridViewInfo view)
The parent whose children are requested, or null for root rows.
viewGridViewInfoThe view requesting the rows.
Returns:IList<GridViewRowInfo>
The rows supplied for the requested parent.
Overrides:
Returns null because this provider does not resolve a row's parent.
public override GridViewHierarchyRowInfo GetParent(GridViewRowInfo gridViewRowInfo)
The row whose parent would be requested.
Returns:null.
Overrides:
Raises a data-changed notification without clearing the cached root rows.
public override void Refresh()
Overrides:
Clears cached root rows so the next root-row request raises the row-source event again.
public void ResetRowsCache()