Context menu on right click using angular

Originally Posted 1 June 2017, 9:19 pm EST

  • Originally Posted 1 June 2017, 9:19 pm EST

    Hi Team,

    we are using spreadsheets 10 with angular js and we have a requirement to add context menu on right click to the cells. How can we proceed? Please provide some examples.

  • Reply


    This is the documentation page for using Angular with Spread.Sheets:

    In addition, I've attached a sample that shows how to use the two together as well.

    In regards to showing a context menu on right-click, Spread.Sheets does not have any context menus built into it, so you would need to write your own code for that. However, the code in this documentation page should be useful in determining which cell is being clicked on:

    The only difference is that the code in that page is for left-clicking, so it would need to be changed a little to something like this for right-clicking:

    Let me know if that helps.

    In addition, please do not submit multiple forum posts for the same issue.

  • Marked as Answer


    var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"), { sheetCount: 1 });

    var selectWithABackgroundColor = {
    text: 'Open Dialog',
    name: 'openDialog',
    command: showLoginDialog,
    workArea: 'viewport'//rowHeader
    function showLoginDialog() {
    $.each(spread.contextMenu.menuData, function (p, v) {
    if ( === 'openDialog') {
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels