CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

Best way for edit more objects at same time

rated by 0 users
Answered (Not Verified) This post has 0 verified answers | 2 Replies | 2 Followers

Not Ranked
2 Posts
caste posted on Fri, Jan 11 2013 3:30 AM

Hi all, I have an  ER object with a list of childs. Childs are display in a  list.

I want edit childs is this way:

1) if I have seleced a single child, it is display in a  details mask for editing the properties.

2) if I selected more than a child I wan't to edit all childs, in the same mask edit (like a property grid that combine same properties for assign objects).

 Which is the better solution? I wan't to see anything changes in list until  modified childs is saved. 

I must use a Read only list and a Editable root at same time?

Any suggestions is appreciated.

Thanks

caste 

All Replies

Top 10 Contributor
9,270 Posts
Suggested by RockfordLhotka
This is a UI or view or presentation level issue, not a business model issue. In other words, your existing business object model doesn't need to be altered. What you need is a viewmodel that manages the interaction between the one UI control (your textbox) and the set of selected items in the collection. I've done this for a client or two over the years, and it is not a terribly hard problem to solve as long as you recognize the need for a UI-specific viewmodel object that handles this particular type of interaction.

Rocky

Not Ranked
2 Posts
caste replied on Tue, Jan 15 2013 4:35 PM

Hi Rocky, you are right, this is a presentation level issue. I have implemented a VM, that manages the list of business objects.

Thanks for your replay.

caste

 

Page 1 of 1 (3 items) | RSS

Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems