Class DynamicList<TViewModel>
Represents a list of view model objects that can be added and removed from a form through Ajax. This class can be used to create lists of view models that contain no custom options. To specify custom options for your objects, see DynamicList<TViewModel, TOptions>.
Implements
ICollection<DynamicListItem<TViewModel>>
IEnumerable<DynamicListItem<TViewModel>>
IDynamicList<DynamicListItem<TViewModel>>
Inherited Members
Namespace: DynamicVML
Assembly: DynamicVML.dll
Syntax
public class DynamicList<TViewModel> : DynamicList<TViewModel, DynamicListItem<TViewModel>>, ICollection<DynamicListItem<TViewModel>>, IEnumerable<DynamicListItem<TViewModel>>, IEnumerable, IDynamicList<DynamicListItem<TViewModel>>, IDynamicList where TViewModel : class
Type Parameters
Name | Description |
---|---|
TViewModel | The type of the view model. |
Constructors
| Improve this Doc View SourceDynamicList()
Initializes a new instance of the DynamicList<TViewModel, TOptions> class.
Declaration
public DynamicList()
DynamicList(String)
Initializes a new instance of the DynamicList<TViewModel, TOptions> class. This constructor overload is only used when creating a new item to be added to an existing form in an HTML page.
Declaration
public DynamicList(string containerId)
Parameters
Type | Name | Description |
---|---|---|
String | containerId | The ID of the HTML div element to which the contents of this list should be appended to. |
Implements
Extension Methods
See Also
DynamicList<TViewModel, TOptions>