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.
- C#
- VB.NET
public class ejPager : ejBase
Public Class ejPager
Inherits ejBase
Constructors
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);
ejPager(options)
Constructs a new instance of the ejPager class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial 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);