I have a view model with a list of items. These items are rendered using a partial view within a for loop.
I want to be able to click on some text within the partial view and post back to the controller the item and all properties that I clicked on.
I can’t simply pass an Id as once I’ve passed the item to the view I cannot look it up again.
What options do I have to do this?
Now, I see. I’d implement this this in another way.
1st controller – to list items,
2nd controller – to manipulate items
jQuery for UI.
Client side selecting, editing – on jQuery,
Save button goes to 2nd controller. Which internally may cause refresh of list.
Refreshing items to 1st.
Also some Ajax to make client work more convenient. It seems to be perfect match.