Click or drag to resize
BasicDataPager Class
Control for supporting the data paging within the databound controls.
Inheritance Hierarchy

Namespace: CMS.Controls
Assembly: CMS.Controls (in CMS.Controls.dll) Version: 8.2.23
Syntax
C#
public class BasicDataPager : CMSWebControl, 
	INamingContainer

The BasicDataPager type exposes the following members.

Constructors
  NameDescription
Public methodBasicDataPager
Constructor.
Top
Methods
  NameDescription
Public methodGetBackNextLocation
Returns back/next type based on the given string.
Public methodGetItemDataRow
Returns the DataRow for the given item index.
Public methodGetItemPage
Returns the page of selected item (start with 1)
Public methodGetPagerPosition
Returns the pager position based on the given string.
Public methodGetPagingMode
Returns the paging mode based on the given string.
Public methodGetResultPosition
Returns the result position based on the given string.
Protected methodOnInit
Init event handler.
(Inherited from CMSWebControl.)
Public methodRaiseOnDataSourceChanged
Raises the OnDataSourceChanged event.
Public methodRaiseOnPageChange
Raises the OnPageChange event.
Protected methodRender
Render override.
(Overrides WebControlRender(HtmlTextWriter).)
Public methodStatic memberStringToPagingPlaceTypeEnum
Returns the pager position based on the given string.
Top
Extension Methods
  NameDescription
Public Extension MethodAddCssClass
Adds CSS class to control. If class is already present, than adding is skipped. Class names are case sensitive.
(Defined by ControlsExtensions.)
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodCallHandled
Calls the method handled by the exception handler. If the call doesn't succeed, the problem is reported through parent IExceptionHandler control instead of throwing unhandled exception for the entire page. Returns true, if the call succeeded, otherwise returns false.
(Defined by ControlsExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetCssClasses
Returns all CSS classes of control.
(Defined by ControlsExtensions.)
Public Extension MethodGetRenderedHTML
Returns HTML which would be rendered by control to page.
(Defined by ControlsExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodHasCssClass
Checks whether the control has given CSS class. Class names are case sensitive.
(Defined by ControlsExtensions.)
Public Extension MethodRemoveCssClass
Removes all occurrences. Class names are case sensitive.
(Defined by ControlsExtensions.)
Public Extension MethodSetCssClasses
Sets CSS classes to the control. Current classes will be overridden.
(Defined by ControlsExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
Fields
  NameDescription
Protected fieldmDataSource
DataSource.
Protected fieldmMaxPages
Max. pages.
Protected fieldmPagedData
Paged data.
Protected fieldmPagingMode
Paging mode.
Protected fieldmUniqueID
Unique ID.
Top
Properties
  NameDescription
Public propertyCurrentPage
Current page number.
Public propertyDataSource
Pager DataSource.
Public propertyIsLiveSite
Indicates if control is used on live site.
(Inherited from CMSWebControl.)
Public propertyMaxPages
Maximum number of pages to be displayed.
Public propertyPageCount
Page count.
Public propertyPagedData
Paged data.
Public propertyPagerPosition
Pager position.
Public propertyPageSize
Page size.
Public propertyPagingMode
Determines if PostBack or QueryString should be used for the paging.
Public propertyRecordEnd
Index of the last record on current page.
Public propertyRecordStart
Index of the first record on current page.
Public propertyShortID
Short ID of the control.
(Inherited from CMSWebControl.)
Protected propertyTagKey
Overrides the generation of the SPAN tag with custom tag.
(Overrides WebControlTagKey.)
Public propertyTotalRecords
Total data source records.
Public propertyUIContext
Returns control's UI context
(Inherited from CMSWebControl.)
Public propertyUniqueID
Unique ID.
(Overrides ControlUniqueID.)
Top
Events
  NameDescription
Public eventOnDataSourceChanged
Data source change event.
Public eventOnPageChange
Page change event.
Top
See Also