| Visual Basic (Declaration) | |
|---|---|
Public Overridable Property Pattern As String | |
| C# | |
|---|---|
public virtual string Pattern {get; set;} | |
This example shows a number of different pattern strings that can be applied to the grid to customize the pager links.
| Visual Basic | Copy Code |
|---|---|
Protected Sub UltraWebGrid1_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.LayoutEventArgs) Handles UltraWebGrid1.InitializeLayout | |
| C# | Copy Code |
|---|---|
protected void UltraWebGrid1_InitializeLayout(object sender, Infragistics.WebUI.UltraWebGrid.LayoutEventArgs e) | |
Use this to customize the text displayed in the pager area by adding literal text, HTML formatting and substitution tokens within square brackets that are replaced at run-time.
- [default] - default pager HTML markup is rendered here. The actual text will depend on the StyleMode setting.
- [currentpageindex] - index of the current page.
- [pagecount] - number of pages.
- [pagesize] - number of rows per page.
- [prev] - the link to the previous page.
- [next] - the link to the next page.
- [page:N:text] - the link to the page N. N can be either the page number or words 'first', 'prev', 'next' or 'last'. The text value is used for the link name; if omitted the page number is rendered.
Make sure you include the [default] token or the pager links generated by the StyleMode setting won't be rendered. The Pattern property can be used with all StyleMode settings.
