Skip to main content

CollapsiblePanelSettings.SetExpandedPanelTemplateContent(Action<TemplateContainerBase>) Method

Allows you to custom render the content of the expanded panel.

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public void SetExpandedPanelTemplateContent(
    Action<TemplateContainerBase> contentMethod
)

Parameters

Name Type Description
contentMethod Action<TemplateContainerBase>

A method to which a template content rendering is delegated.

Remarks

Note

Once a template defined using the SetExpandedPanelTemplateContent method is created, it is instantiated within a container object of the TemplateContainerBase type. This container object exposes a set of members which can be useful when designing a template.

Use the SetExpandedPanelTemplateContent method to define the content that should be displayed within the expanded panel.

Note

If the template content for the expanded panel is not defined (using the SetExpandedPanelTemplateContent method), the expanded panel will display the template content defined using the CollapsiblePanelSettings.SetContent method.

See Also