Paging with editable collection

Paging with editable collection

Old forum URL: forums.lhotka.net/forums/t/3766.aspx


hanami279 posted on Wednesday, October 24, 2007

Hi all,

I have a issue with adding paging support to child collection. All lists are paging supported, it worked well with readonly list e.g. search result. We only have problem with updatable lists e.g. Whenever a new item is created, it may or may not appear in current list depends on what filter criteria are. Although it can appear immediately in current list, it will be disappeared when user turns to other page due to we do paging in database with actual records but newly added record only stored in memory.

 

Do you have any suggestion?

 

Thanks,

RockfordLhotka replied on Wednesday, October 24, 2007

I would expect that you'd save any changes to the current page of items before moving to another page? Or are you storing the information in Session somehow?

If you are storing the information in Session you should probably be doing some sort of merge operation, merging each page's information into the master list. In that case, your factory method can try to serve up each page from memory, and only go to the data portal if the entire page isn't in memory.

Copyright (c) Marimer LLC