A newer version of this page is available. Switch to the current version.

CollapsiblePanelSettings.SetContent(String) Method

Specifies the panel content.

Namespace: DevExpress.Web.Mvc

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


public void SetContent(
    string content
Public Sub SetContent(
    content As String


Name Type Description
content String

A string value specifying the template content.


The SetContent method has an overload that accepts a string as a parameter. You can use this overload to define custom HTML for your panel content, like it is displayed in a code example below.

@Html.DevExpress().Panel(settings =>
    settings.Name = "Panel1";
    // Defines panel content as a string with HTML code.
    settings.SetContent(@"<span style=""color:#f00;"">Custom Content</span>");
See Also