Kentico CMS 7.0 Controls

Overview

Overview

Previous topic Next topic Mail us feedback on this topic!  

Overview

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

The UniPager is a universal paging control that can ensure paging for any control that implements the IUniPageable interface. This includes the following Basic and Generic controls:

 

BasicDataList

BasicRepeater

BasicUniView

UniView

 

As well as the following CMS controls:

 

CMSDataList

CMSRepeater

QueryDataList

QueryRepeater

 

In cases where the UniPager control is placed after the attached listing control, that control must bind its data later in the page life cycle than during the Init event, otherwise paging will not be applied. For the CMSDataList and CMSRepeater controls, this can easily be solved by setting their DelayedLoading property to true.

 

The QueryDataList and QueryRepeater controls do not have this property, however, you can ensure that paging is applied correctly by setting their DataBindByDefault property to false and manually calling their Databind() method during the Load event:

 

[C#]

 

protected void Page_Load(object sender, EventArgs e)
{
   QueryRepeater1.DataBind();      
}

 

The UniPager is also built into the CMSUniView and QueryUniView controls and can be enabled by their EnablePaging property.

 

The portal engine equivalent of the UniPager control is the Listings and viewers -> Universal Pager web part.

 

The following topics are available to help you familiarize yourself with the UniPager control:

 

Getting started - contains a quick step-by-step tutorial that allows you to learn the basics of using the control

Configuration - describes and explains the properties that can be set for the control

Structure - contains a more advanced example of how the control can be configured and demonstrates what individual template properties affect

Appearance and styling - describes how the design of the control can be modified

Implementing the IUniPageable interface - contains a tutorial describing how a custom control that is pageable by the UniPager control can be created