This question is locked. New answers and comments are not allowed.
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 :)
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 :)