This is a migrated thread and some comments may be shown as answers.

Multiple Read Action Call

1 Answer 587 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Adrian
Top achievements
Rank 1
Adrian asked on 28 Nov 2016, 03:57 PM

I have noticed that while loading my MVC grid read action is called multiple times when there are many rows in the grid. It impacts performance significantly, since read method return json with full grid data every time and it's pretty time consuming.

Any ideas how can I improve grid loading time?

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 30 Nov 2016, 12:30 PM
Hi Adrian,

The read action for the Grid should be called only once when retrieving the data. I tested the behavior in one of the online examples and it is working as expected. Please check out the following video as illustration.


With that said, if you would like to return only the items for the current page of the Grid you can use custom paging. You can see how the behavior us implemented in our Sample Application. Examine the Custom Ajax Binding example that illustrates the approach.

You can find information on how to download and run the application in the following article.



Regards,
Viktor Tachev
Telerik by Progress
Telerik UI for ASP.NET MVC is ready for Visual Studio 2017 RC! Learn more.
Tags
Grid
Asked by
Adrian
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or