Skip to main content

ejPager

Namespace: Wisej.Web.Ext.Syncfusion

Assembly: Wisej.Web.Ext.Syncfusion (4.1.0.0)

The Essential Javascript Pager control allows you to navigate between records which are sectioned into pages. The navigation between pages which is key functionality of Pager is done using built-in numeric and navigation buttons and provides easy user interaction.

public class ejPager : ejBase

Constructors​

Instance member ejPager()​

Constructs a new instance of the ejPager class.

Example:

The following example creates the pager and sets the number of records and the page size through the options.

var pager = new ejPager();
pager.Options.totalRecordsCount = 500;
pager.Options.pageSize = 25;
pager.Dock = DockStyle.Bottom;
this.Controls.Add(pager);

Instance member ejPager(options)​

Constructs a new instance of the ejPager class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a pager that starts at the third page and shows the page selected by the user.

var pager = new ejPager(new
{
totalRecordsCount = 500,
pageSize = 25,
pageCount = 5,
currentPage = 3
});
pager.Instance.onChange += new WidgetEventHandler((s, e) =>
{
AlertBox.Show($"Page: {e.Data.currentPage}");
});
pager.Dock = DockStyle.Bottom;
this.Controls.Add(pager);

Implements​