• 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

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

    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>)
    • 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.