views:

28

answers:

2

After looking at the available options, I'm looking at making a plugin for jQuery (and coincidentally, a library for ASP.NET MVC) that will provide some simple methods for dynamically adding objects to a collection of a ViewModel.

I speak of things like this ( http://www.highoncoding.com/Articles/640_Adding_Multiple_Nested_Data_in_ASP_NET_MVC_Application.aspx )

I was wondering if there is already anything out there like that, though, before I start building one of my own.

+1  A: 

Sounds like this might be exactly what you are looking for.

Chao
+2  A: 

Funny Chao nods to Steve Sanderson without mentioning the very interesting Knockoutjs.

It is more a framework, but works perfectly well with jquery and the upcoming jquery templates for that matter.

In particular: for adding objects to a collection you would want to look closely at the observableArrays

Not surprising for a writer of asp.net-mvc books, Steve provides an mvc sample and there is an active forum with many from .net backgrounds, though it is not strictly a .net framework.

dove
Hmmm, interesting, I'll definitely have to check it out +1
Chao
This is extremely interesting, indeed! Thank you!
Stacey