Class PartialList<T>

A partial list of objects that supports DataSourceControl paging.

Inheritance
System.Object
PartialList<T>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.WebControls
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public class PartialList<T>
Type Parameters
Name Description
T

The object type to track

Constructors

PartialList(PartialList<T>.LoadCallback)

Initializes a new instance of the PartialList<T> class which handles incremental load of an enumerable range of objects"

Declaration
public PartialList(PartialList<T>.LoadCallback loadCallback)
Parameters
Type Name Description
PartialList.LoadCallback<> loadCallback

A callback method used for loading a specified part of the range

PartialList(PartialList<T>.LoadCallback, PartialList<T>.FilterCallback)

Initializes a new instance of the PartialList<T> class which handles incremental load of an enumerable range of objects"

Declaration
public PartialList(PartialList<T>.LoadCallback loadCallback, PartialList<T>.FilterCallback filterCallback)
Parameters
Type Name Description
PartialList.LoadCallback<> loadCallback

A callback method used for loading a specified part of the range

PartialList.FilterCallback<> filterCallback

A callback method used for filtering specific items in the range

Properties

Count

Gets the total number of loaded objects. Use this to set the total row count in a data source control.

Declaration
public int Count { get; }
Property Value
Type Description
System.Int32

Methods

GetRange(Int32, Int32)

GetRange returns a specified part of the set of objects, if the requested range has not been loaded the load and filter callback will be used to populate missing parts.

Declaration
public List<T> GetRange(int startIndex, int maxRows)
Parameters
Type Name Description
System.Int32 startIndex

the start index in the set of objects

System.Int32 maxRows

the maximum number of objects to return

Returns
Type Description
System.Collections.Generic.List<T>

Extension Methods