Class PagingHandler
- Namespace
- Dynamicweb.Modules.Common
- Assembly
- Dynamicweb.dll
Handles paging of lists
public class PagingHandler
- Inheritance
-
PagingHandler
- Inherited Members
Constructors
PagingHandler()
public PagingHandler()
PagingHandler(int)
public PagingHandler(int collectionSize)
Parameters
collectionSize
int
Properties
Activated
public bool Activated { get; set; }
Property Value
CollectionSize
public int CollectionSize { get; set; }
Property Value
ContentModule
public ContentModule ContentModule { get; set; }
Property Value
EmptyRangeOnPageOverflow
Gets or sets a value indicating whether to return an empty range if current page is out of bounds.
public bool EmptyRangeOnPageOverflow { get; set; }
Property Value
- bool
true
if empty range is returned for pages out of bounds; otherwise,false
.
IgnoreCollectionSizeForRange
Gets or sets a value indicating whether calculate range with the constraint of the collection size.
public bool IgnoreCollectionSizeForRange { get; set; }
Property Value
- bool
true
if collection size constraint is ignored; otherwise,false
. Default isfalse
.
NextButtonImage
public string NextButtonImage { get; set; }
Property Value
NextButtonText
public string NextButtonText { get; set; }
Property Value
PageNumber
public int PageNumber { get; set; }
Property Value
PageNumberVariableName
public string PageNumberVariableName { get; set; }
Property Value
PageSize
public int PageSize { get; set; }
Property Value
Prefix
public string Prefix { get; set; }
Property Value
PreviousButtonImage
public string PreviousButtonImage { get; set; }
Property Value
PreviousButtonText
public string PreviousButtonText { get; set; }
Property Value
Range
public PagingHandler.PagingRange Range { get; }
Property Value
ShowLastPage
public bool ShowLastPage { get; set; }
Property Value
TypeOfNextButton
public PagingHandler.ButtonType TypeOfNextButton { get; set; }
Property Value
TypeOfPreviousButton
public PagingHandler.ButtonType TypeOfPreviousButton { get; set; }
Property Value
Methods
GetCurrentPageNumber()
Get number of the current page
public int GetCurrentPageNumber()
Returns
GetPageCount()
Get count of pages
public int GetPageCount()
Returns
LoadProperties(Properties, string)
public void LoadProperties(Properties pagingProperty, string pagingControlId)
Parameters
pagingProperty
PropertiespagingControlId
string
LoadProperties(string)
public void LoadProperties(string propertiesValues)
Parameters
propertiesValues
string
Render(Template)
public void Render(Template template)
Parameters
template
Template