Skip to content

Commit c127d2b

Browse files
Pagination: Add showPageSizeSelector: 'auto' info (#8015) (#8159)
1 parent fbdefed commit c127d2b

File tree

5 files changed

+34
-6
lines changed

5 files changed

+34
-6
lines changed

api-reference/10 UI Components/GridBase/1 Configuration/pager/showPageSizeSelector.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ id: GridBase.Options.pager.showPageSizeSelector
33
---
44
---
55
##### shortDescription
6-
Specifies whether to show the page size selector.
6+
Specifies page size selector visibility.
77

88
---
9+
10+
When this property is set to *"auto"*, the pager is hidden if [pageSize](/Documentation/ApiReference/UI_Components/dxPagination/Configuration/#pageSize) is greater than [itemCount](/Documentation/ApiReference/UI_Components/dxPagination/Configuration/#itemCount). To avoid this behavior, set **showPageSizeSelector** to `true`.
11+
912
#include common-demobutton-named with {
1013
url: "https://js.devexpress.com/Demos/WidgetsGallery/Demo/DataGrid/RecordPaging/",
1114
name: "DataGrid"

api-reference/10 UI Components/dxPagination/1 Configuration/itemCount.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,17 @@ default: 1
88
Specifies the total number of items.
99

1010
---
11-
`itemCount` is the main configuration setting of the component. Specify the total number of items to ensure the Pagination component functions properly.
11+
Define this property to ensure Pagination functions properly.
12+
13+
[note]
14+
15+
If the [pageSize](/Documentation/ApiReference/UI_Components/dxPagination/Configuration/#pageSize) value is greater than **itemCount**, Pagination is hidden. To avoid this behavior, assign `true` to at least one of the following properties:
16+
17+
- [showInfo](/Documentation/ApiReference/UI_Components/dxPagination/Configuration/#showInfo)
18+
- [showNavigationButtons](/Documentation/ApiReference/UI_Components/dxPagination/Configuration/#showNavigationButtons)
19+
- [showPageSizeSelector](/Documentation/ApiReference/UI_Components/dxPagination/Configuration/#showPageSizeSelector)
20+
21+
[/note]
1222

1323
#include btn-open-demo with {
1424
href: "https://js.devexpress.com/Demos/WidgetsGallery/Demo/Pagination/Overview/"

api-reference/10 UI Components/dxPagination/1 Configuration/pageSize.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ default: 5
99
Specifies the page size.
1010

1111
---
12+
13+
[note]
14+
15+
If the **pageSize** value is greater than [itemCount](/Documentation/ApiReference/UI_Components/dxPagination/Configuration/#itemCount), Pagination hides itself. To avoid this behavior, assign `true` to at least one of the following properties:
16+
17+
- [showInfo](/Documentation/ApiReference/UI_Components/dxPagination/Configuration/#showInfo)
18+
- [showNavigationButtons](/Documentation/ApiReference/UI_Components/dxPagination/Configuration/#showNavigationButtons)
19+
- [showPageSizeSelector](/Documentation/ApiReference/UI_Components/dxPagination/Configuration/#showPageSizeSelector)
20+
21+
[/note]
22+
1223
#include btn-open-demo with {
1324
href: "https://js.devexpress.com/Demos/WidgetsGallery/Demo/Pagination/Overview/"
1425
}
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
---
22
id: dxPagination.Options.showPageSizeSelector
3-
type: Boolean
4-
default: false
3+
type: Boolean | Enums.Mode
4+
default: 'auto'
55
---
66
---
77
##### shortDescription
8-
Specifies whether to show the page size selector.
8+
Specifies page size selector visibility.
99

1010
---
11+
12+
When this property is set to *"auto"*, Pagination hides itself if [pageSize](/Documentation/ApiReference/UI_Components/dxPagination/Configuration/#pageSize) is greater than [itemCount](/Documentation/ApiReference/UI_Components/dxPagination/Configuration/#itemCount). To avoid this behavior, set **showPageSizeSelector** to `true`.

api-reference/40 Common Types/PagerBase/showPageSizeSelector.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ default: 'auto'
55
---
66
---
77
##### shortDescription
8-
Specifies whether to show the page size selector.
8+
Specifies page size selector visibility.
99

1010
---
11+
12+
When this property is set to *"auto"*, the pager hides itself if [pageSize](/Documentation/ApiReference/UI_Components/dxPagination/Configuration/#pageSize) is greater than [itemCount](/Documentation/ApiReference/UI_Components/dxPagination/Configuration/#itemCount). To avoid this behavior, set **showPageSizeSelector** to `true`.

0 commit comments

Comments
 (0)