Skip to main content

MVCxMenuItem.SetTemplateContent(String) Method

Allows you to specify a template for the content of the current menu item.

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public void SetTemplateContent(
    string content
)

Parameters

Name Type Description
content String

A string value specifying the template content.

Remarks

i.SetTemplateContent(c => {
    ViewContext.Writer.Write(Resources.ResourceStrings.RS_FROM);
    Html.DevExpress().DateEdit(deSettings => {
        deSettings.Name = "deFromDate";
    }).GetHtml();
});
See Also