Context Menu Issue - Server Side Code Executing But No Browser Refresh

Posted by: joe0569 on 12 February 2025, 11:16 am EST

  • Posted 12 February 2025, 11:16 am EST

    I’m attempting to use a context menu within fpspread and am having issues getting the browser to update. I have a viewport menu with menu items that have command names. The conext menu displays properly when right-clicking, and the server-side event fires with the proper command name, however my code executes but isn’t reflected in the browser.

    I was trying to have a menu item redirect to another page and nothing happens. I have removed any client side events/logic and the browser still doesn’t update.

  • Posted 24 February 2025, 5:11 am EST

    If the context menu is being rendered dynamically, try triggering the navigation on the client side using

    window.location.href = "YourPage.aspx";
    inside a JavaScript function tied to the menu item click event. Retro Bowl College

  • Posted 26 February 2025, 8:47 pm EST

    Hi Joe,

    We have created a sample application based on your use-case. [TestSample.zip]

    Could you please test it on your end and let us know if you are able to replicate the issue with this application as well?

    In case the issue replicates, then please provide the exact steps we can follow to observe the behaviour along with the required environment details. Otherwise, please update the attached sample based on your implementation along with the steps to reproduce the issue.

    Your cooperation is highly appreciated.

    Thanks & regards,

    Aastha

Need extra support?

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

Learn More

Forum Channels