Class DynamicListEditorOptions
Represents different options that can be used when displaying a DynamicList<TViewModel, TOptions> for edigint. Instances of this class are normally created internally by the library when calling the ListEditorFor<TModel, TValue>(IHtmlHelper<TModel>, Expression<Func<TModel, TValue>>, String, String, String, String, String, String, Object, ListRenderMode, NewItemMethod) extension method provided by this library.
Inherited Members
Namespace: DynamicVML.Options
Assembly: DynamicVML.dll
Syntax
public class DynamicListEditorOptions : DynamicListOptions
Remarks
An instance of this class may be present in the ViewData dictionaries for your view. If you would like to access this object, use the value of ListEditorParameters as the ViewData key.
Properties
| Improve this Doc View SourceActionUrl
Gets or sets the path to your controller's action which will be responsible for rendering a new item to be added to the list. Please see the sample applications for an example on how they are set up.
Declaration
public string ActionUrl { get; set; }
Property Value
Type | Description |
---|---|
String |
AddNewItemText
Gets or sets the text that gets displayed on the "Add New Item" link that will call the server to dynamically add a new item to the list. The default is to use "Add new {name of your view model}".
Declaration
public string AddNewItemText { get; set; }
Property Value
Type | Description |
---|---|
String |
Method
Gets or sets whether to use Get or Post when requesting new list items from the server. Default is to use Get.
Declaration
public NewItemMethod? Method { get; set; }
Property Value
Type | Description |
---|---|
Nullable<NewItemMethod> |