MVCxGridViewProperties.SetEditFormTemplateContent(Action<GridViewEditFormTemplateContainer>) Method
In This Article
Allows you to provide a template to render the GridView edit form.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public void SetEditFormTemplateContent(
Action<GridViewEditFormTemplateContainer> contentMethod
)
#Parameters
Name | Type | Description |
---|---|---|
content |
Action<Grid |
A method to which a template content rendering is delegated. |
#Remarks
Note
- Once a template defined using the Set
Edit method is created, it is instantiated within a container object of the GridForm Template Content View type. This container object exposes a set of members which can be useful when designing a template.Edit Form Template Container - The grid does not render default editors when the Edit
Form template ( MVCxGrid ) is used. The GetView Properties. Set Edit Form Template Content Editor returns null when you access custom editors in the template. In this case, use the Name or the Client(column) Instance of an extension that is placed in the EditName Form template to access custom editors on the client side.
See Also