Class ListEditorParameters
Represents the actual parameters being used to render an editor for the list. An instance of this class will be stored in the ViewData object of your view under the key ListEditorParameters.
Inherited Members
Namespace: DynamicVML.Internals
Assembly: DynamicVML.dll
Syntax
public class ListEditorParameters : ListDisplayParameters
Constructors
| Improve this Doc View SourceListEditorParameters(ListParameters, Object, String, String, NewItemMethod)
Creates a new instance of ListEditorParameters.
Declaration
public ListEditorParameters(ListParameters parameters, object additionalViewData, string actionUrl, string addNewItemText, NewItemMethod method)
Parameters
Type | Name | Description |
---|---|---|
ListParameters | parameters | |
Object | additionalViewData | |
String | actionUrl | |
String | addNewItemText | |
NewItemMethod | method |
Properties
| Improve this Doc View SourceActionUrl
Gets the actual ActionUrl being used.
Declaration
public string ActionUrl { get; }
Property Value
Type | Description |
---|---|
String |
AddNewItemText
Gets the actual AddNewItemText being used.
Declaration
public string AddNewItemText { get; }
Property Value
Type | Description |
---|---|
String |
Method
Gets the actual Method being used.
Declaration
public NewItemMethod Method { get; }
Property Value
Type | Description |
---|---|
NewItemMethod |
Methods
| Improve this Doc View SourceGetActionInfo()
Gets a string containing information about the item to be rendered and the controller action to be called, either as a query string (for when using Get or JSON (for when using Post. Those instructions will be passed to the JavaScript scripts in the view to call the controller using Ajax.
Declaration
public string GetActionInfo()
Returns
Type | Description |
---|---|
String | A string containing instructions on how to call the controller using Ajax. |
GetItemCreateParameters()
Creates a new AddNewDynamicItem object based on the information stored in this instance.
Declaration
public AddNewDynamicItem GetItemCreateParameters()
Returns
Type | Description |
---|---|
AddNewDynamicItem | A new AddNewDynamicItem object. |