Declined
Last Updated: 11 Jul 2023 14:59 by ADMIN
Dominik
Created on: 16 Jan 2020 08:34
Category: ContextMenu
Type: Feature Request
2
Select Event on MenuItem Level

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();
      }
    }
  }
With that feature, i can remove the handleSelection function and call the Upload/Download directly.
2 comments
ADMIN
Martin
Posted on: 11 Jul 2023 14:59

Hi Dominik,

We are declining this request due to low interest and demand. If it turns out to be popular in the future, we will reconsider the status. 

Regards,
Martin
Progress Telerik

As of R2 2023, the default icon type will be SVG instead of Font. See this blogpost for more information.
ADMIN
Dimiter Topalov
Posted on: 16 Jan 2020 08:37

Hi Dominik,

Thank you for submitting this feature request. We will monitor the customer demand here, and will prioritize accordingly when updating our roadmap.

Regards,
Dimiter Topalov
Progress Telerik

Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.