its not very easy and transparent to find out what menu item was clicked and what function is to be executed. A simple callback reference would be most convenient. Or at least a simple value to compare. Other advantage is that in case of international translations the code is not impacted
Something along the lines of the following would be great:
function onSelect(e, dataItem) {
alert(dataItem.command);
}
$("#menu").kendoMenu({
dataSource: [
{
text: "Create",
command: "CreateNew"
},
{
text: "Print",
command: "PrintPdf",
imageUrl: "pdf.png"
},
{
text: "Print",
command: "PrintExcel"
imageUrl: "excel.png"
}
],
select: onSelect
});