Skip to main content
A newer version of this page is available. .

MVCxMenuItem.SetTemplateContent(String) Method

Allows setting a template for displaying the content of the current menu item.

Namespace: DevExpress.Web.Mvc

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

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