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!!
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!!