Interface IDynamicList
Represents a list whose items are tracked by a string key associated with the id of div elements in an HTML form, and whose items can be succesfully binded to object properties by ASP.NET's default IModelBinder.
Namespace: DynamicVML
Assembly: DynamicVML.dll
Syntax
public interface IDynamicList
Remarks
This is the non-generic version of IDynamicList<TValue> which can be used whenever list item types do not need to be known. This will usually be the case when acessing the dynamic list from a template view.
Properties
| Improve this Doc View SourceContainerId
The HTML div ID associated with this list. This ID is generated automatically using the CreateId() method and is guaranteed to be unique.
Declaration
string ContainerId { get; set; }
Property Value
Type | Description |
---|---|
String | The identifier for the HTML div element that contains the representation of this list in an HTML form. |
Count
Gets the number of elements contained in this list.
Declaration
int Count { get; }
Property Value
Type | Description |
---|---|
Int32 | The number of elements in this list. |
Index
This property is required to help IModelBinder during runtime and does not have to be set to anything when creating the list.
Declaration
string Index { get; set; }
Property Value
Type | Description |
---|---|
String |
Item[String]
Gets the
Declaration
IDynamicListItem this[string id] { get; }
Parameters
Type | Name | Description |
---|---|---|
String | id |
Property Value
Type | Description |
---|---|
IDynamicListItem |
Remarks
This is an explicit interface implementation which is only available when interacting with this list through the IDynamicList interface. Normally, this should only be the case when accessing the list from a view.
Keys
Gets an enumerable that can be used to iterate through the identifiers of the div HTML elements used by your view models when rendered in a form.
Declaration
IEnumerable<string> Keys { get; }
Property Value
Type | Description |
---|---|
IEnumerable<String> | The keys, represented as an IEnumerable<T>. |