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

Fetching data for one page at the time

3 Answers 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alex
Top achievements
Rank 1
Alex asked on 12 Jul 2012, 04:27 PM
Hello. I'm new to the Telerik Forum. I've been working with a MVC application for a few weeks now, and I need some help. 

My application is used for searching through log files and apply filtering and timespan before actually showing any data. When the data is shown in the grid, I want it to only load a certain amount of data. As of now, it's loading every entry, making the loading time for the grid extremely slow. The reason for this need is because the huge amount of data that will be populating the grid. My current grid is working fine with ajax databindning, though it's very ineffective since all the data is loaded each time the user applys filtering or paging.

How can this be achieved in MVC? I've been looking for a solution, though I haven't found what i'm looking for. There seems to be a solution for Telerik for ASP .NET AJAX .

3 Answers, 1 is accepted

Sort by
0
Pedro
Top achievements
Rank 2
answered on 13 Jul 2012, 03:43 PM
Does your grid have .Pageable() added to it?

For example:

Html.Telerik().Grid(Model)
        .Name("Grid")
        .Pageable(paging =>
            paging.PageSize(20)
                  .Style(GridPagerStyles.NextPreviousAndNumeric)
                  .Position(GridPagerPosition.Bottom)
        )
? Pedro
0
Alex
Top achievements
Rank 1
answered on 16 Jul 2012, 06:16 AM
I tried that, not sure if it actually works. What does it do exactly?
0
Pedro
Top achievements
Rank 2
answered on 17 Jul 2012, 07:18 PM
what it does, is take all your rows of data into pages of 20 items each, and then add numbers to the bottom of the grid to be able to cycle through the pages.
Tags
Grid
Asked by
Alex
Top achievements
Rank 1
Answers by
Pedro
Top achievements
Rank 2
Alex
Top achievements
Rank 1
Share this question
or