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

Bind Grid to one page of data at a time?

1 Answer 234 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nathan
Top achievements
Rank 2
Nathan asked on 08 Dec 2011, 09:13 PM
Hello,

I'm using a RadGrid to load a very large set of records. My application pulls data from the database into a domain of business objects. On the "OnItemDataBound" event I access the bound object to configure each row. This object contains child objects that must be accessed to make determinations as well. I bind the RadGrid to a list of business objects "List<MyObject>". This is done by setting the grid datasource and then calling databind afterwards.

I have my domain setup to take in page numbers so that it only pulls back data for a specific page and loads the domain of objects for that one page. If we were to pull all data for the grid we would be loading many many business objects that would greatly decrease the performance of the grid.

My question is how can I use paging for the RadGrid and still only load up one page of data at a time? Is this even possible? Or maybe you have a better solution?

Thanks!!

1 Answer, 1 is accepted

Sort by
0
Nathan
Top achievements
Rank 2
answered on 08 Dec 2011, 11:54 PM
Please disregard... i found what I was looking for.

I have setup the grid using custom paging techniques from the demo:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/custompaging/defaultcs.aspx


Thanks anyway!
Tags
Grid
Asked by
Nathan
Top achievements
Rank 2
Answers by
Nathan
Top achievements
Rank 2
Share this question
or