After also fighting a while against the model binder and understanding what it is necessary for it to work properly, I decided to write a library for creating dynamic lists in ASP.NET. I wanted to share it here in case it would be useful for you and the others in the comments. I've called it Dynamic View-Model Lists (very creative, I know) and it's available at dynamic-vml.github.io/
In a particular application I was working on, I had to create several lists for different models using slightly different layouts to use in wizard-like pages. So I decided to make the library a templating engine where you could easily define different view templates for each component of a dynamic list. It also supports nesting lists with any depth.
It comes with sample applications if anyone would like to see examples that just work out-of-the-box.
I had a couple issues with Stevan's solution so I just came across your library and decided to give it a shot. After installing it, for some reason " using DynamicVML;" is not resolving, although it does appear under Packages! Do you know what the issue could be? Am I supposed to reference it somewhere else before referencing it in my ViewModel? Awaiting your response, thanks!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Stevan,
After also fighting a while against the model binder and understanding what it is necessary for it to work properly, I decided to write a library for creating dynamic lists in ASP.NET. I wanted to share it here in case it would be useful for you and the others in the comments. I've called it Dynamic View-Model Lists (very creative, I know) and it's available at dynamic-vml.github.io/
In a particular application I was working on, I had to create several lists for different models using slightly different layouts to use in wizard-like pages. So I decided to make the library a templating engine where you could easily define different view templates for each component of a dynamic list. It also supports nesting lists with any depth.
It comes with sample applications if anyone would like to see examples that just work out-of-the-box.
Hope someone finds it useful!
Cesar
Hi César,
I had a couple issues with Stevan's solution so I just came across your library and decided to give it a shot. After installing it, for some reason " using DynamicVML;" is not resolving, although it does appear under Packages! Do you know what the issue could be? Am I supposed to reference it somewhere else before referencing it in my ViewModel? Awaiting your response, thanks!