0

I am passing kendo MenuItem as JSON from server side to client side which are having Mainmenu and SubMenu options. Mainmenu is rendering properly but SubMenu are not rendering. let me explain with code;

below is my server side JSON data which i am sending to Client side:

enter image description here and in my client side, data is rendering properly enter image description here

but output is showing data for MainMenu items only not for SubMenu. enter image description here Below is my javascript code:

function KendoMenuItem(menuItem)
 {    
    jsObjectForkendoMenuItem = menuItem;    
}
function kendoMenu() {
    debugger;
   // alert(jsObjectForkendoMenuItem);
    $('#menu').kendoMenu({
        //orientation: "vertical",
        dataSource: [
            {
                text: "Add",
                value: "Add",
                items: jsObjectForkendoMenuItem                        
            },
        ],
        //select: onKendoMenuselect
    });
}

please let me know where i am doing wrong.

pnuts
  • 58,317
  • 11
  • 87
  • 139
Rupak
  • 61
  • 10

1 Answers1

0

Ok. the problem was I in Items was in capital letter.

Rupak
  • 61
  • 10