Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to associate a pop up menu correctly?

How to associate a pop up menu correctly?

Scheduled Pinned Locked Moved ASP.NET
questiontestingbeta-testinghelptutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KaKa
    wrote on last edited by
    #1

    Hi, I created a web parts control consisting of a listbox and a pop up menu. When the user rightclicks on the listbox, the pop up menu is supposed to appear. However, the menu always seems to be blocked by the listbox e.g The menu seems to be in the background and is partially blocked by the listbox. Something like dragging 1 control on top of the other on a windows form. How do I enable the menu to be displayed on top of the listbox? Below is a code snippet: 'Creates child controls (a menu and a listbox) Protected Overrides Sub CreateChildControls() listbox1.ID = "List1" listitem1.Text = "Testing" listbox1.Items.Add(listitem1) listbox1.AutoPostBack = True Me.Controls.Add(listbox1) AddHandler listbox1.SelectedIndexChanged, AddressOf Listbox1_SelectedIndexChanged menu1.ID = "ContextMenu1" menuitem1.Text = "Acknowledge" menu1.ContextMenuItems.Add(menuitem1) menu1.boundcontrols.add(listbox1) Me.Controls.Add(menu1) End Sub I tried changing the order of the controls but its still the same thing. Any solutions for this problem?

    V 1 Reply Last reply
    0
    • K KaKa

      Hi, I created a web parts control consisting of a listbox and a pop up menu. When the user rightclicks on the listbox, the pop up menu is supposed to appear. However, the menu always seems to be blocked by the listbox e.g The menu seems to be in the background and is partially blocked by the listbox. Something like dragging 1 control on top of the other on a windows form. How do I enable the menu to be displayed on top of the listbox? Below is a code snippet: 'Creates child controls (a menu and a listbox) Protected Overrides Sub CreateChildControls() listbox1.ID = "List1" listitem1.Text = "Testing" listbox1.Items.Add(listitem1) listbox1.AutoPostBack = True Me.Controls.Add(listbox1) AddHandler listbox1.SelectedIndexChanged, AddressOf Listbox1_SelectedIndexChanged menu1.ID = "ContextMenu1" menuitem1.Text = "Acknowledge" menu1.ContextMenuItems.Add(menuitem1) menu1.boundcontrols.add(listbox1) Me.Controls.Add(menu1) End Sub I tried changing the order of the controls but its still the same thing. Any solutions for this problem?

      V Offline
      V Offline
      vinod_dan
      wrote on last edited by
      #2

      delete the z-index of ur listbox from its STYLE in the html page.

      K 1 Reply Last reply
      0
      • V vinod_dan

        delete the z-index of ur listbox from its STYLE in the html page.

        K Offline
        K Offline
        KaKa
        wrote on last edited by
        #3

        Hi, The listbox is not an individual control on the web form. It is part of the web part control. When the control is dragged onto the web page form, the listbox's properties do not appear in the html code. Is there other way to get to the Z property?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups