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

Grid control and paging questions?

2 Answers 42 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.
Kendall Bennett
Top achievements
Rank 2
Kendall Bennett asked on 18 Mar 2011, 01:47 AM
Hi Guys,

I am evaluating the Telerik MVC extensions for use in our software, and I have some questions about the grid control. In particular, the grid samples I have seen and from what I have read of the API, it easily handles paging using LINQ functionality to traverse the data set the grid control is bound to. That will work nicely if the data set is in local memory, or if the data set is delivered via LINQ to SQL or LINQ to Entities.

That is not the case in our situation as our repository code is all hand written and follows the strict repository model where users of the repository to have to query what data is needed. Our API has paging functionality built in, but it is not handled by LINQ (it might be an interesting exercise to see if I could layer a LINQ provider on top of it actually :). So the problem I have, is it is not clear to me how I can connect the grid control to my data store, and manually handle the paging? Ie: I need the ability to tell the grid control how many pages there are, and when the user navigates to a new page, to allow me to load the page of data and submit it to the grid to be rendered.

Is that possible? Is there any sample code showing how this would work?

If not, anyone got any sample code showing how to implement my own LINQ enumerable object, so I could layer that on top of my repository model :)

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 18 Mar 2011, 08:35 AM
Hi Kendall Bennett,

 Please refer to the custom binding example and help topic.

Regards,
Atanas Korchev
the Telerik team
0
Kendall Bennett
Top achievements
Rank 2
answered on 21 Mar 2011, 07:10 PM
Thank you very much!
Tags
Grid
Asked by
Kendall Bennett
Top achievements
Rank 2
Answers by
Atanas Korchev
Telerik team
Kendall Bennett
Top achievements
Rank 2
Share this question
or