Paging macro. Holds state for paging through large datasets.
Can be used in combination with existing datatables to page through large datasets.
Use in combination with macros/vipers that return datatables.
Can be used in combination with existing datatables to page through large datasets.
Use in combination with macros/vipers that return datatables.
Syntax
Smartsite SXML | Copy Code |
---|---|
<se:paging /> |
Parameters
Name | Data Type | Properties | Description |
---|---|---|---|
CurrentPage | Integer | - | Sets the current page. |
InputData | DataTable | - | Sets the input DataTable. |
PageSize | Integer | - | Sets the size of the page. |
QueryPrefix | String | - |
Sets the prefix that should be used to access the paging state for this paging macro. Use different prefixes if more than one paging macro resides on the same web page. |
TotalCount | Integer | - | Sets the total count. Use only when no input data is available. |
Shared Parameters
Local Viper Methods
Viper | Extension | Description |
---|---|---|
This.CanGoBack | ✓ | Determines whether there is a previous page to go back to when paging is set to true. |
This.CanGoForward | ✓ | Determines whether there is a next page to go to when paging is set to true. |
This.ClearForcedResult |
Sets the result of the macro. used to override the normal handling of the result creation. |
|
This.Count | ✓ | Gets the total page count. |
This.Current | ✓ | Gets the current page. |
This.FirstResult | ✓ | Gets the index of the first result on the current page. |
This.GetForcedResult | Gets the forced result of the macro, set by overriding the normal rendering using SetForcedResult(). | |
This.GetTotalCount | ✓ | Gets the total count. Use only when no input data is available. |
This.GoTo | ✓ | Gets a link to the given paging position. |
This.Initialized | ✓ |
Gets a value whether the paging state has been initialized with data. Use this method to see whether there are no records or the totalcount has not been set (in both situations, GetTotalCount() returns 0). |
This.LastResult | ✓ | Gets the index of the last result on the current page. |
This.Location | ✓ | Gets the location to the given pagng position. |
This.Offset | ✓ | Gets the current row offset for this page. |
This.RenderTime | ✓ | Returns the render time of the macro in milliseconds. |
This.SetCurrentPage | ✓ | Sets the current page. |
This.SetForcedResult |
Sets the result of the macro. used to override the normal handling of the result creation. |
|
This.SetTotalCount | ✓ | Sets the total count. Use only when no input data is available. |
This.Size | ✓ | Gets the size of the page. |
This.Skip | ✓ | Gets the rows to skip. |