or
I know how to add an menu item to an existing item but I would like to know how to add an item to the menu root.
Here's the code I have so far:
var MainMenu = $("#MainMenu").kendoMenu({
animation: {
open: { effects: "fadeIn" },
close: { effects: "fadeIn" }
}
});
MainMenu.append({ text: "New Root Item" }, MainMenu);
http:
//odata.site.com/USDA.svc/GetNutritionalInfo?ndbno=1001&seq=107&servingsize=1
var url = "/support/markasread/" + support_id + "/";
var url = "/support/newticketpost/";
<
div
id
=
"grid"
></
div
>
<
script
>
$(document).ready(function() {
$("#grid").kendoGrid({
dataSource: {
transport: {
read: {
url: "'.$url.'",
type: "post",
dataType: "json"
}
},
schema: {
model: {
fields: {
sel: {
editable: false
},
CODE: { type: "string" },
TYPE: { type: "string" },
CATEGORY_NAME: { type: "string" },
ARTICLE_NAME: { type: "string" },
}
}
},
pageSize: 60
},
height: 450,
scrollable: true,
groupable: true,
sortable: true,
filterable: true,
pageable: true,
selectable: "multiple row",
columns: [{
field: "sel",
template: "#= kendo.toString(\'<
input
type=\"checkbox\" id=\"select\" value=\"CODE\" />\') #",
filterable: false,
sortable: false,
width: 50
},
"CODE",
"TYPE",
"CATEGORY_NAME",
{
field:"ARTICLE_NAME",
filterable: true
}
]
});
});
</
script
>