• Introduction
  • API Documentation
  • Sample Apps
  • GitHub

    Show / Hide Table of Contents
    • DynamicVML
      • AddNewDynamicItem
      • DynamicList<TViewModel, TOptions>
      • DynamicList<TViewModel>
      • DynamicListItem<TViewModel>
      • IDynamicList
      • IDynamicList<TValue>
      • IDynamicListItem
      • IDynamicListItem<TViewModel>
      • ListRenderMode
      • NewItemMethod
    • DynamicVML.Extensions
      • ControllerExtensions
      • EditorExtensions
      • EnumerableExtensions
      • ViewDataExtensions
    • DynamicVML.Internals
      • Constants
      • ItemDisplayParameters
      • ItemEditorParameters
      • ItemParameters
      • ListDisplayParameters
      • ListEditorParameters
      • ListParameters
      • Parameters
    • DynamicVML.Options
      • DynamicListAttribute
      • DynamicListDisplayOptions
      • DynamicListEditorOptions
      • DynamicListOptions

    Class DynamicListItem<TViewModel>

    Represents a list item containing a TViewModel for the item and its associated options.

    Inheritance
    Object
    DynamicListItem<TViewModel>
    Implements
    IDynamicListItem<TViewModel>
    IDynamicListItem
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: DynamicVML
    Assembly: DynamicVML.dll
    Syntax
    public class DynamicListItem<TViewModel> : IDynamicListItem<TViewModel>, IDynamicListItem where TViewModel : class
    Type Parameters
    Name Description
    TViewModel

    The type of view model to be stored in this item.

    Properties

    | Improve this Doc View Source

    Index

    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
    public 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.

    | Improve this Doc View Source

    ViewModel

    Gets or sets the view model stored in this item.

    Declaration
    public TViewModel ViewModel { get; set; }
    Property Value
    Type Description
    TViewModel

    The view model.

    Explicit Interface Implementations

    | Improve this Doc View Source

    IDynamicListItem.ViewModel

    Gets the view model associated with this item as an object.

    Declaration
    object IDynamicListItem.ViewModel { get; }
    Returns
    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).

    Implements

    IDynamicListItem<TViewModel>
    IDynamicListItem

    Extension Methods

    EnumerableExtensions.ToDynamicList<TViewModel, TOptions>(TViewModel, String, TOptions)
    EnumerableExtensions.ToDynamicList<TViewModel>(TViewModel, String)
    EnumerableExtensions.ToDynamicList<TViewModel, TOptions>(TViewModel, String, Func<TViewModel, TOptions>)
    EnumerableExtensions.ToDynamicList<TViewModel, TOptions, TModel>(TModel, String, Func<TModel, TViewModel>, Func<TModel, TOptions>)
    EnumerableExtensions.ToDynamicList<TViewModel, TModel>(TModel, String, Func<TModel, TViewModel>)
    EnumerableExtensions.ToDynamicList<TViewModel, TOptions, TModel>(TModel, String, Func<TModel, TOptions>)

    See Also

    IDynamicListItem<TViewModel>
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 César Roberto de Souza - All files are available under the MIT license except the logo, which comes from FontAwesome.