Unplanned
Last Updated: 06 Dec 2019 09:36 by ADMIN
Christian
Created on: 17 Mar 2012 16:24
Category: Menu
Type: Feature Request
12
in menu widget each item should gets its down callback function or at least an easy value to find out what item got selected. Text not enoug
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
1 comment
Imported User
Posted on: 15 May 2013 02:40
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
   });