Custom paging a datagrid

Posts   
 
    
andieje
User
Posts: 28
Joined: 17-May-2006
# Posted on: 15-Jun-2006 18:47:52   

Hi

My defintiion of custom paging is that if a user wants to see page 2 in a set of pages where there are 10 records per page, you only retrieve records 10 to 19 from the database.

How do you implement custom paging in llblgenpro? Is it possible.

Can i apply a predicate that to an entity collection that allows me to specify the upper anbd lower record number i want to receive?

If this is possible, is this true custom paging? In other words is the predicate applied before or after you have retrieved the records from the database. If it is aplied afterwards you have already retrieved all of the records.

I believe that in the default implementation of pagin in asp.net, the asp.net page retrieves all of the records teh first time the page is requested and then picks out the relevant records on subsequent pages. How would i implement this type of paging using llblgen pro?

Please can you provide concrete code examples in your reply simple_smile

Thanks very much andrea

bclubb
User
Posts: 934
Joined: 12-Feb-2004
# Posted on: 15-Jun-2006 23:41:25   

Please refer to the manual under Generated code - Entity collection and Typed List/Typed View paging. This will contain a thorough explanation with examples. If you have any issues implementing this let us know.