New to Kendo UI for jQuery? Start a free 30-day trial

DataContentField

configuration

Sets the field of the data item that provides the content of the menu items. The content is HTML-encoded by default. To render it as raw HTML, set encoded: false on the data item and make sure that the value is trusted.

The item content is HTML-encoded by default. Set encoded: false on an item to render trusted HTML in its text and content.

<ul id="menu"></ul>
<script>
    var imgUrl = "https://demos.telerik.com/kendo-ui/content/shared/icons/sports/swimming.png";
    $("#menu").kendoMenu({
        dataSource: {
        data: [{
                Name: "Item 1",
                UrlPath: "urlPath",
                Sprite: "spriteCssClass",
                imgUrl: imgUrl,
                description: "some description"
            }]
        },
        dataTextField:"Name",
        dataUrlField:"UrlPath",
        dataSpriteCssClassField:"Sprite",
        dataImageUrlField:"imgUrl",
        dataContentField:"description"
    });
</script>
Not finding the help you need?
Contact Support