• 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 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 Source

    ContainerId

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    Item[String]

    Gets the with the specified identifier as an IDynamicListItem object.

    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.

    | Improve this Doc View Source

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

    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.