Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Feb 2006
    Thanked 0 Times in 0 Posts

    Angry How to display a context menu fully?

    Hi, I am working on a web parts custom control which consists of a label,a list box and a context menu. I bounded the context menu to the list box such that when the user rightclicks on the list, the menu will appear. However, when the menu appears, it is blocked by the listbox. Hence only part of the menu is visible. How do I make the menu to be totally visible and to appear 'on top of' the listbox?

    A code snippet is below:

    list1.ID = "List1" 'List's ID
    listitem1.Text = "Testing" 'List's items
    listitem2.Text = "Event"
    Me.Controls.Add(label1) 'Add the list as part of the custom ctrl

    menu1.ID = "ContextMenu1"
    menuitem1.Text = "Acknowledge" 'Menu Items
    menuitem2.Text = "Testing"
    menu1.BoundControls.Add(list1) 'Attatch menu to the list
    Me.Controls.Add(menu1) 'Add the menu to the custom control

    The code is in ASP.Net using Visual Basic. Advice will be appreciated!

  • #2
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Thanked 23 Times in 23 Posts
    I'm not sure there is anything you can do about it, unless there is some way you can reposition that menu. I had a similar issue with something completely different a while back, and here's what I was told:

    Unfortunately this is the way the browsers work. They will always place the Select Form element, Plug-ins and the applet like yours above all other page elements.

    There is nothing you can do about it except to change the page layout so that there is no conflict.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #3
    New to the CF scene
    Join Date
    Jan 2006
    Thanked 0 Times in 0 Posts
    Right, there is nothing you can do about it.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts