You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`ButtonCount` - `int` - The maximum number of page buttons that will be visible. To take effect, `ButtonCount` must be smaller than the page count (`ButtonCount < Total / PageSize`). The default value is 10.
4
+
*`InputType` - `PagerInputType` - Determines if the pager will show numeric buttons to go to a specific page, or a textbox to type the page index. The arrow buttons are always visible. The `PagerInputType` enum accepts values `Buttons` (default) or `Input`. When `Input` is used, the page index will change when the textbox is blurred, or when the user hits Enter. This is to avoid unintentional data requests.
5
+
*`PageSizes` - `List<int?>` - Allows users to change the page size via a DropDownList. The attribute configures the DropDownList options. A `null` item in the `PageSizes``List` will render an "All" option. By default, the Pager DropDownList is not displayed. You can also set `PageSizes` to `null` programmatically to remove the DropDownList at any time.
Copy file name to clipboardExpand all lines: components/grid/events.md
+53-11Lines changed: 53 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,17 +16,18 @@ This article explains the events available in the Telerik Grid for Blazor. They
16
16
*[Read Event](#read-event) - event related to obtaining data
17
17
*[Other Events](#other-events) - other events the grid provides
18
18
*[State Events](#state-events)
19
-
* [Command Button Click](#command-button-click)
20
-
* [SelectedItemsChanged](#selecteditemschanged)
21
-
* [OnModelInit](#onmodelinit)
22
-
* [OnRowClick](#onrowclick)
23
-
* [OnRowDoubleClick](#onrowdoubleclick)
24
-
* [OnRowContextMenu](#onrowcontextmenu)
25
-
* [OnRowExpand](#onrowexpand)
26
-
* [OnRowCollapse](#onrowcollapse)
27
-
* [OnRowRender](#onrowrender)
28
-
* [OnRowDrop](#onrowdrop)
29
-
* [PageChanged](#pagechanged)
19
+
*[Command Button Click](#command-button-click)
20
+
*[SelectedItemsChanged](#selecteditemschanged)
21
+
*[OnModelInit](#onmodelinit)
22
+
*[OnRowClick](#onrowclick)
23
+
*[OnRowDoubleClick](#onrowdoubleclick)
24
+
*[OnRowContextMenu](#onrowcontextmenu)
25
+
*[OnRowExpand](#onrowexpand)
26
+
*[OnRowCollapse](#onrowcollapse)
27
+
*[OnRowRender](#onrowrender)
28
+
*[OnRowDrop](#onrowdrop)
29
+
*[PageChanged](#pagechanged)
30
+
*[PageSizeChanged](#pagesizechanged)
30
31
31
32
## CUD Events
32
33
@@ -999,6 +1000,47 @@ The event fires when the user pages the grid.
999
1000
}
1000
1001
````
1001
1002
1003
+
### PageSizeChanged
1004
+
1005
+
The `PageSizeChanged` event fires when the user changes the page size via the pager DropDownList. The existence of this event also ensures that the Grid `PageSize` attribute supports two-way binding.
1006
+
1007
+
If the user selects the "All" option from the page size DropDownList, the `PageSizeChanged` event will receive the total item count as an argument.
1008
+
1009
+
Make sure to update the current page size when using the event.
Copy file name to clipboardExpand all lines: components/grid/paging.md
+31-6Lines changed: 31 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,13 +10,12 @@ position: 20
10
10
11
11
# Grid Paging
12
12
13
-
The Grid component offers support for paging.
13
+
The Grid component supports paging.
14
14
15
-
To enable paging, set its `Pageable` property to `true`.
16
-
17
-
You can control the number of records per page through the `PageSize` property.
18
-
19
-
You can set the current page of the grid through its integer `Page` property.
15
+
* To enable paging, set the Grid `Pageable` parameter to `true`.
16
+
* Set the number of items rendered at once with the `PageSize` parameter (defaults to 10).
17
+
* If needed, set the current page of the Grid through its integer `Page` property.
18
+
* You can further customize the pager interface via additional [pager settings](#pager-settings).
20
19
21
20
>caption Enable paging in Telerik Grid
22
21
@@ -82,6 +81,32 @@ Dynamic page size change
82
81
}
83
82
````
84
83
84
+
## Pager Settings
85
+
86
+
In addition to `Page` and `PageSize`, the Grid provides advanced pager configuration options via the `GridPagerSettings` tag, which is nested inside `GridSettings`. These configuration attributes include:
Copy file name to clipboardExpand all lines: components/listview/events.md
+42Lines changed: 42 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ This article explains the events available in the Telerik ListView for Blazor:
16
16
*[Read Event](#read-event) - event related to obtaining data
17
17
*[OnModelInit](#onmodelinit)
18
18
*[PageChanged](#pagechanged)
19
+
*[PageSizeChanged](#pagesizechanged)
19
20
20
21
## CUD Events
21
22
@@ -584,6 +585,47 @@ The event fires when the user pages the listview. If you will be providing the `
584
585
}
585
586
````
586
587
588
+
### PageSizeChanged
589
+
590
+
The `PageSizeChanged` event fires when the user changes the page size via the pager DropDownList. The existence of this event also ensures that the TreeList `PageSize` attribute supports two-way binding.
591
+
592
+
If the user selects the "All" option from the page size DropDownList, the `PageSizeChanged` event will receive the total item count as an argument.
593
+
594
+
Make sure to update the current page size when using the event.
Copy file name to clipboardExpand all lines: components/listview/paging.md
+49-4Lines changed: 49 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,12 +12,15 @@ position: 4
12
12
13
13
The ListView component can page the entire data source automatically. You can, alternatively, hook to an event and fetch each page of data yourself.
14
14
15
-
To enable paging set the `Pageable` parameter of the listview to `true`.
15
+
* To enable paging, set the ListView `Pageable` parameter to `true`.
16
+
* Set the number of items rendered at once with the `PageSize` parameter (defaults to 10).
17
+
* If needed, set the current page of the ListView through its integer `Page` property.
18
+
* You can further customize the pager interface via additional [pager settings](#pager-settings).
16
19
17
-
You can also control the number of items rendered at once through the `PageSize` parameter (defaults to 10).
20
+
The ListView exposes three relevant events. You can find related examples in the [Events]({%slug listview-events%}) article.
18
21
19
-
The listview exposes two relevant events:
20
-
*`PageChanged` - you can use this to react to the user changing the page. You can find an example in the [Events]({%slug listview-events%}) article.
22
+
*`PageChanged` - you can use this to react to the user changing the page.
23
+
*`PageSizeChanged` - fires when the user changes the page size via the pager DropDownList.
21
24
*`OnRead` - you can use this to perform the read operation yourself on demand, instead of providing the entire data source at once. You can read more about this in the [Manual Data Source Operations]({%slug listview-manual-operations%}) article.
22
25
23
26
>caption Enable Paging in the ListView component and set a custom page size
@@ -53,6 +56,48 @@ The listview exposes two relevant events:
53
56
> * Use an `IQueryable<MyModel>` collection for the listview `Data`. The listview will build a LINQ expression internally that will be resolved only when needed. This can be useful when the `Data` comes from something like an EntityFramework context.
54
57
> * Implement [manual data source operations]({%slug listview-manual-operations%}) and implement the desired query yourself. In a future version, the `DataSourceRequest` object will become serializable so you can send it directly over HTTP to a controller and use the LINQ queries it will build for you.
55
58
59
+
## Pager Settings
60
+
61
+
In addition to `Page` and `PageSize`, the ListView provides advanced pager configuration options via the `ListViewPagerSettings` tag, which is nested inside `ListViewSettings`. These configuration attributes include:
Copy file name to clipboardExpand all lines: components/treelist/events.md
+95-1Lines changed: 95 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ This article explains the events available in the Telerik TreeList for Blazor. T
21
21
* [OnRowRender](#onrowrender)
22
22
* [OnRowDrop](#onrowdrop)
23
23
* [PageChanged](#pagechanged)
24
+
* [PageSizeChanged](#pagechanged)
24
25
25
26
## CUD Events
26
27
@@ -1148,9 +1149,102 @@ The event fires when the user pages the treelist.
1148
1149
}
1149
1150
````
1150
1151
1152
+
### PageSizeChanged
1153
+
1154
+
The `PageSizeChanged` event fires when the user changes the page size via the pager DropDownList. The existence of this event also ensures that the TreeList `PageSize` attribute supports two-way binding.
1155
+
1156
+
If the user selects the "All" option from the page size DropDownList, the `PageSizeChanged` event will receive the total item count as an argument.
1157
+
1158
+
Make sure to update the current page size when using the event.
0 commit comments