Unplanned
Last Updated: 29 Dec 2023 17:24 by Shlomo
Shlomo
Created on: 29 Dec 2023 17:24
Category: Menu
Type: Bug Report
1
MenuItem with Content Appearance Issue

Bug report

When utilizing the content property for a Kendo UI Menu's DataSource, the MenuItem's content is not created as expected based on documentation.

Reproduction of the problem

Here is a Progress Kendo UI Dojo which replicates the appearance issue.

Expected/desired behavior

This is a Dojo with an older version that is working as expected.

Workaround

Define the content in a nested Items property:

           {
             text: "<b>Item 2</b>",
             encoded: false,                              // Allows use of HTML for item text
             items: [{
               content: "text",                            // content within an item
               contentAttr: {
                 style: 'border: 1px solid red; padding: 2px;', // Add attributes to the content container
                 custom: 'value'
               }
             }],                             
           },

Here is a Dojo of the workaround in action.

Environment

  • Kendo UI version: 2023.3.1114
  • jQuery version: All supported versions
  • Browser: all
0 comments