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

    Base class for DynamicListDisplayOptions and DynamicListEditorOptions.

    Inheritance
    Object
    DynamicListOptions
    DynamicListDisplayOptions
    DynamicListEditorOptions
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: DynamicVML.Options
    Assembly: DynamicVML.dll
    Syntax
    public abstract class DynamicListOptions
    Remarks

    The properties of this class specify templates for different regions of the dynamic list when it gets rendered into a view. A quick reference for the regions can be seen in the figure below:

    Properties

    | Improve this Doc View Source

    ItemContainerTemplate

    Gets or sets the item container template to be used when displaying a list for this attribute. For more details about the different regions associated with a DynamicList<TViewModel, TOptions>, please EditorExtensions.

    Declaration
    public string ItemContainerTemplate { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    ItemTemplate

    Gets or sets the item template to be used when displaying a list for this attribute. This should normally be your view for the view models you are using. If you do not specify a view name, the library will attempt to find one based on your view model's class name. For more details about the different regions associated with a DynamicList<TViewModel, TOptions>, plase EditorExtensions.

    Declaration
    public string ItemTemplate { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    ListTemplate

    Gets or sets the list template to be used when displaying a list for this attribute. For more details about the different regions associated with a DynamicList<TViewModel, TOptions>, please EditorExtensions.

    Declaration
    public string ListTemplate { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Mode

    Gets or sets whether the view for your viewmodel should receive a @model of type YourOptions{YourViewModel} or simply YourViewModel. Default is to use ViewModelOnly (so your view will receive just your view model, without its associated options object.

    Declaration
    public ListRenderMode? Mode { get; set; }
    Property Value
    Type Description
    Nullable<ListRenderMode>

    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

    DynamicListEditorOptions
    DynamicListDisplayOptions
    • 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.