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.
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.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|