Interface IDynamicListItem
Represents an item stored in a DynamicList<TViewModel, TOptions> when the type of the view model does not need to be known. This is normally the case when handling the list from inside a list template view.
Namespace: DynamicVML
Assembly: DynamicVML.dll
Syntax
public interface IDynamicListItem
Properties
| Improve this Doc View SourceIndex
This property is needed by the IModelBinder in order to bind this item correctly to the HTML form. It does not have to be set manually and will likely be overwritten by the rest of the library.
Declaration
string Index { get; set; }
Property Value
Type | Description |
---|---|
String | The index of the item, represented as a GUID value formatted as a HTML-friendly string. |
ViewModel
Gets the view model associated with this item as an object.
Declaration
object ViewModel { get; }
Property Value
Type | Description |
---|---|
Object | The view model. |
Remarks
This property is only visible when handling this item through the non-generic IDynamicListItem interface, which normally should be the case only when acessing this item from a view (e.g. list templates).