How to use grid custom command to open a context menu

3 posts, 0 answers
  1. Kalli Kaldi
    Kalli Kaldi avatar
    30 posts
    Member since:
    Oct 2011

    Posted 14 Jun 2016 Link to this post

    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. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2311 posts

    Posted 16 Jun 2016 Link to this post

    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.
     
  3. Kalli Kaldi
    Kalli Kaldi avatar
    30 posts
    Member since:
    Oct 2011

    Posted 16 Jun 2016 in reply to Dimiter Madjarov Link to this post

    Thanks, Dimiter.  Filter option did the trick ;)

    Best regards,
    Kalli

Back to Top