Skip to main content

MVCxGridViewProperties.SetEditFormTemplateContent(Action<GridViewEditFormTemplateContainer>) Method

Allows you to provide a template to render the GridView edit form.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.2.dll

Declaration

public void SetEditFormTemplateContent(
    Action<GridViewEditFormTemplateContainer> contentMethod
)

Parameters

Name Type Description
contentMethod Action<GridViewEditFormTemplateContainer>

A method to which a template content rendering is delegated.

Remarks

Note

  • Once a template defined using the SetEditFormTemplateContent method is created, it is instantiated within a container object of the GridViewEditFormTemplateContainer type. This container object exposes a set of members which can be useful when designing a template.
  • The grid does not render default editors when the EditForm template (MVCxGridViewProperties.SetEditFormTemplateContent) is used. The GetEditor(column) returns null when you access custom editors in the template. In this case, use the Name or the ClientInstanceName of an extension that is placed in the EditForm template to access custom editors on the client side.
See Also