telerik / kendo-react

Issue tracker - KendoReact http://www.telerik.com/kendo-react-ui/
https://kendo-react-teal.vercel.app
Other
212 stars 36 forks source link

[Bug][Grid] `All` pagesize option is not displayed after selecting it #1853

Closed WissamProgress closed 7 months ago

WissamProgress commented 8 months ago

I'm submitting a...

Current behavior

When using the onDataStateChange event, it adding the All value as a pageSize, selecting it is not applied to the pageSize DropDownList.

Expected behavior

Selecting the All value should display it in the DropDown.

Minimal reproduction of the problem with instructions

  1. Open the overview demo and set pageable.pageSize to [5, 10, 14, 'All'] - https://stackblitz.com/edit/react-emapav?file=app%2Fmain.jsx
  2. Click on the All option in the Pager DropDownList

Reported in Ticket ID: 1636929

spatil77937 commented 7 months ago

Also selecting all should hide buttons as well of pages. We are having this issue in production , can you please give priority to it...

WissamProgress commented 7 months ago

It appears that this is not a bug as this functionality is achieved in the onDataStateChange event handler where you can set the take property to products.length when targetEvent.value equals All, or whatever string you set in the pageSizes.

Here is an example with the onDataStateChange event and the process method:

Nevertheless, this information should be added to the documentation, which we will do.

WissamProgress commented 7 months ago

@spatil77937 does this demo match what you need?