Advice on Updating a VERY LONG ChildList

Advice on Updating a VERY LONG ChildList

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


jpmir posted on Friday, March 30, 2012

Hi guys,

I'm looking for your expert advice on this topic.

I'm working on some specific process which involves an EditableRoot with an EditableChildList. This EditableChildList may have 5 or 6K rows and it is being filled by a server side process (No user interaction at this point... duh!).

The thing is, in very specific scenarios, users require to edit one or more records of that list.

Being said this, my first approach was a paginated list but how to keep track of updated items? how Dataportal will know which items are deleted and which items were not loaded at all (because of pagination system)?...

So I guess that direct edition of a regular CSLA Editable List is not posible...

Any ideas?

Thanks in advance

JP

 

 

 

 

 

 

RockfordLhotka replied on Friday, March 30, 2012

The Samples\Net\cs\Csla.DiffGram sample shows a way to solve the problem of sparse updates in a large collection.

You lose some of the cooler benefits of the data portal using this technique, but it is usually worth it for this particular type of scenario.

jpmir replied on Friday, March 30, 2012

Hi Rocky

Thank you, this seems to solve the situation... 

(If anyone looks for more details, look here: http://forums.lhotka.net/forums/t/7511.aspx)

Now, this approach forces me to send the entire collection to the client (Silverlight application) which in my opinion is a very large amount of data. Certainly it will not travel back to the server, but still is a huge object graph... 

Do you see any possibility of doing this while the list is being paginated at server side?

Regards!

JP

Copyright (c) Marimer LLC