Skip to main content

PopupControlSettingsBase.SetContent(String) Method

Allows you to custom render the content of all popup windows (or a dock panel).

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public void SetContent(
    string content
)

Parameters

Name Type Description
content String

A string value representing the content.

Remarks

@Html.DevExpress().PopupControl(settings => {
    settings.Name = "PopupControl";
    // ...
    settings.SetContent(() => {
        ViewContext.Writer.Write("<div id='containerDiv' style='height:100%; widht:100%'>");
        Html.RenderAction("GridViewPartial");
        ViewContext.Writer.Write("</div>");
    });
    // ...

Run Demo: Features

Online Example

View Example: How to create a confirmation dialog View Example: Round Panel for ASP.NET MVC - How to define control content

See Also