Ticket T116649
Visible to All Users

ASPxMenu - Show an ASPxPopupMenu on rightclick item

created 11 years ago

Hi,

Is it possible to popup an contextemenu on right-click on an ASPXmenutem ?
Do you have a sample on it ?

Thanks
Sylo

Answers approved by DevExpress Support

created 11 years ago (modified 11 years ago)

Hello,

To accomplish this task, I suggest you add a div element to the ASPxMenu's ItemTemplate. Then, handle the div's oncontextmenu event and call the popupmenu's client-side Show method. I've attached a sample project demonstrating this approach.
Let us know whether this solution meets your requirements.

    Comments (3)

      Thanks Lanette
      But I need to use the approach explain int this post https://www.devexpress.com/Support/Center/Example/Details/E49 to populate my ASPxMenu…
      And I need to obtain the Item which is right clicked…
      Is it possible with tour approach ?
      Thanks
      Sylo

      ES ES
      Elena S (DevExpress) 11 years ago

        Hello,

        I have implemented the required scenario in a sample project based on the approach demonstrated in the ASPxMenu - How to bind a control to a database example. Please review it. Hope it helps.

        Attached is a sample project.

          Thanks for your great help !

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.