This is a migrated thread and some comments may be shown as answers.

How to use grid custom command to open a context menu

2 Answers 445 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kalli Kaldi
Top achievements
Rank 1
Kalli Kaldi asked on 14 Jun 2016, 12:55 PM

Hi.

I have a Grid with a custom command button and when I click it, I want to open a context menu.  I created this (http://dojo.telerik.com/@kristjk/UNOwE) which has a Grid, similar to mine, and a custom command button as the last cell in the row.

How would I go about showing a context menu when I click it and not show it on right-click ?

 

Best regards,
Kalli

2 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 16 Jun 2016, 08:08 AM

Hello Kalli,

In this case you could use the filter option of the context menu to configure that it should be displayed after interaction with the command button only. The showOn option configures the event on which the menu should be displayed. Here is the updated version of the example.

Regards,
Dimiter Madjarov
Telerik
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Kalli Kaldi
Top achievements
Rank 1
answered on 16 Jun 2016, 03:39 PM

Thanks, Dimiter.  Filter option did the trick ;)

Best regards,
Kalli

Tags
Grid
Asked by
Kalli Kaldi
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Kalli Kaldi
Top achievements
Rank 1
Share this question
or