5 Answers, 1 is accepted
The "All" option sets the pageSize to the total number of items, effectively loading all data items in the Grid, which causes the mentioned delay for large datasets:
http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-pageable.pageSizes
You can set the mentioned configuration property value to an array, holding custom values of your preference, omitting the "All" option, as shown in the following simple dojo example:
http://dojo.telerik.com/iqOgip
I hope this helps.
Regards,
Dimiter Topalov
Telerik by Progress
We understand the cause of delay is due to loading all data items in grid. We cannot omit "All" option as a requirement demand.
Can we handle this by showing some delay message when we select "All" while the items are loading?
Else please provide a solution to overcome this delay as page becomes unresponsive leading to kill the page sometimes. It will be a great help.
Please accept my apology for the delay.
The Kendo UI Grid should have a built-in kendo progress. However, as requested - below are two different ways to initialize your own Kendo UI progress indicator.
1) Attach an event handler to the requestStart event of the Kendo UI Data Source.
2) Choose either Kendo UI progress() method or a Progress Bar and begin displaying the relevant loading indication.
3) Add a handler function to the requestEnd event of the Kendo UI Data Source or the Kendo UI Grid dataBound event.
4) End the loading indication
Let me know if you need further help.
Regards,
Alex
Telerik by Progress
Hello Alex,
Can you please provide some demo to show loading indicator while chnage pagesizes from drop-down of kendo-grid paging
Hello, Viral,
The loading indicator is shown what the grid requests new data. There is no need to implement it programmatically.
Take a look at this remotely bound grid with pageSizes and note that the loading indicator shows out of the box when you change them:
https://dojo.telerik.com/@bubblemaster/EzOMetAQ
Regards,
Alex Hajigeorgieva
Progress Telerik