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.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