We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

how to show context menu on left click?

Platform: JavaScript |
Control: ejGrid |
Published Date: July 6, 2018 |
Last Revised Date: July 6, 2018

This explains that how to display the context menu on a left click.



We have achieved this using load event of ejGrid. In load event we have bind the click event to Grid and in this event, we have used showContextMenu method of ejMenu to display the context menu on Grid.

To display the context menu on pager we have bind the click event directly in pageSettings API using load event of ejGrid.

The following code example demonstrates how to show the context menu on a left click.


1. Render the Grid Control.










TS File:

2. In AngularJS we bind the click event directly to the pageSettings API for show the context menu in pager.



3. In load event we have bind click event to the Grid element. In this click event we have taken ejMenu instance and we also able to get the target in the arguments of click event. Based on the target element we have display the appropriate context menu for the Grid header, content and Footer.





You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon