Add the Select Event of the Context-Menu on Item Level:
Example:
<kendo-contextmenu [target]="target" showOn="click" (select)="handleSelection($event)">
<kendo-menu-item text="download" icon="k-icon k-i-download" (select)="uploadClick()">
</kendo-menu-item>
<kendo-menu-item text="upload" icon="k-icon k-i-download" (select)="downloadClick()">
</kendo-menu-item>
</kendo-contextmenu>
If there would be a "Select" event on the "kendo-menu-item" Component, there would no need for extra code to call the desired function.
At the moment, a handleSelction-function is needed to check the selected item and call the desired action. The (select) on the item does nothing.
public uploadClick(){
alert('upload');
}
public downloadClick() {
alert('download');
}
public handleSelection(event: ContextMenuSelectEvent) {
if (event) {
if(event.index === "0"){
this.downloadClick();
}
else {
this.uploadClick();
}
}
}