Class DynamicListOptions
Base class for DynamicListDisplayOptions and DynamicListEditorOptions.
Inherited Members
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 SourceItemContainerTemplate
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 |
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 |
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 |
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> |