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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Radial Menu as a Body context menu

Thread ID:

Created:

Updated:

Platform:

Replies:

128826 Feb 11,2017 08:32 AM UTC Feb 13,2017 12:54 PM UTC ASP.NET Web Forms 1
loading
Tags: RadialMenu
Christopher Scholl
Asked On February 11, 2017 08:32 AM UTC

Is there a way to show a radial menu as the context menu for an asp.net page?  I'd like to show a radial menu any time a user right-clicks the web page.

Selvamani Sankarappan [Syncfusion]
Replied On February 13, 2017 12:54 PM UTC

Hi Christopher, 
Thanks for using Syncfusion products, 
We can achieve your requirement using JQuery contextmenu event. Then, open the radial menu based on the target element. Refer to the following code example: 
 
[script] 
$(document).ready(function () { 
            document.oncontextmenu = function () { return false; }; 
            $("#target").bind("contextmenu", function (e) { 
                $('#defaultradialmenu').ejRadialMenu("show"); 
                radialEle.ejRadialMenu("setPosition", 100, 10); 
                radialEle.focus(); 
                $("#defaultradialmenu").ejRadialMenu({ "targetElementId": "target" }); 
            }); 
        }); 
 
 
Refer to the following sample; 
 
Regards, 
Selvamani S. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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

;