Multiple Read Action Call

2 posts, 0 answers
  1. Adrian
    Adrian avatar
    8 posts
    Member since:
    Jan 2016

    Posted 28 Nov 2016 Link to this post

    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?

  2. Viktor Tachev
    Viktor Tachev avatar
    2213 posts

    Posted 30 Nov 2016 Link to this post

    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.

    Viktor Tachev
    Telerik by Progress
    Telerik UI for ASP.NET MVC is ready for Visual Studio 2017 RC! Learn more.
Back to Top