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. Z-index problem in a control in a Panel using ModalPopupExtender

Z-index problem in a control in a Panel using ModalPopupExtender

Scheduled Pinned Locked Moved ASP.NET
helpcsharpjavascriptdatabase
2 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.
  • E Offline
    E Offline
    ednrg
    wrote on last edited by
    #1

    Background: We are using .NET 2.0 with the MS Ajax Extensions and the Ajax Toolkit. I'm using the Ajax ModalPopupExtender extender control to create modal popups on a page. I am using a custom datepicker control that uses javascript to pop up a calendar, and populates the textbox with the date selected. Problem: It seems that Javascript gets confused with the z-index of the popup. When used on a non-ajax popup panel, it works flawlessly. But, when it is placed on a modal popup panel, the javascript popup calendar is shown behind the modal form. Since the main form and the panel that is controlled by the modal popup are essentially the same form, the control cannot distinguish that its z-index should be set differently. Failures: I've tried moving the panel to the beginning of the page. I've tried setting the z-index of the page to a high number I've tried setting the z-index of the panel to 0 and 1 I've rechecked the code to verify it is not setting the z-index internally. Any help on finding a solution to this problem would be greatly appreciated.

    U 1 Reply Last reply
    0
    • E ednrg

      Background: We are using .NET 2.0 with the MS Ajax Extensions and the Ajax Toolkit. I'm using the Ajax ModalPopupExtender extender control to create modal popups on a page. I am using a custom datepicker control that uses javascript to pop up a calendar, and populates the textbox with the date selected. Problem: It seems that Javascript gets confused with the z-index of the popup. When used on a non-ajax popup panel, it works flawlessly. But, when it is placed on a modal popup panel, the javascript popup calendar is shown behind the modal form. Since the main form and the panel that is controlled by the modal popup are essentially the same form, the control cannot distinguish that its z-index should be set differently. Failures: I've tried moving the panel to the beginning of the page. I've tried setting the z-index of the page to a high number I've tried setting the z-index of the panel to 0 and 1 I've rechecked the code to verify it is not setting the z-index internally. Any help on finding a solution to this problem would be greatly appreciated.

      U Offline
      U Offline
      User 2028510
      wrote on last edited by
      #2

      try to put an iframe under your custom calendar.

      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