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. Problem with a dropdownlist

Problem with a dropdownlist

Scheduled Pinned Locked Moved ASP.NET
databasehelptutorial
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.
  • S Offline
    S Offline
    Sudee
    wrote on last edited by
    #1

    Hello, Dropdownlist is always on the top of the page. due to which when I try to display calendar on it's top then it's not working. I tried style:z-index on both controls but not working. thanks, Suds Some dudes gotta know how to develop a prg. and some dudes just never get it at all.

    A 1 Reply Last reply
    0
    • S Sudee

      Hello, Dropdownlist is always on the top of the page. due to which when I try to display calendar on it's top then it's not working. I tried style:z-index on both controls but not working. thanks, Suds Some dudes gotta know how to develop a prg. and some dudes just never get it at all.

      A Offline
      A Offline
      Andrew Quinn AUS
      wrote on last edited by
      #2

      Hi, Yes it's a pain isn't it! And I'm afraid there is no cure. I had the same problem, in the end I had to put the calendar into a popup window.. e.g.

      function onGetDate(id){
      // calendar control button has been clicked,
      // take this as dirty(ing) the form
      dirtyForm();

      window.event.returnValue = false; // don't allow click to fall thro' to the form handler...
      var elDate = document.getElementById(id);
      if (elDate) {
      	x = event.screenX - event.offsetX;
      	y = event.screenY - event.offsetY;
      	if (g\_wndCalendar) g\_wndCalendar.close(); // close any existing window...
      	g\_wndCalendar = window.open("calendar.aspx", "Calendar", "titlebar=0,left="+x+",top="+y+",toolbar=0,location=0,status=0,width=210,height=200,resizable=1", true);
      }
      

      }

      Cheers, Andy

      S 1 Reply Last reply
      0
      • A Andrew Quinn AUS

        Hi, Yes it's a pain isn't it! And I'm afraid there is no cure. I had the same problem, in the end I had to put the calendar into a popup window.. e.g.

        function onGetDate(id){
        // calendar control button has been clicked,
        // take this as dirty(ing) the form
        dirtyForm();

        window.event.returnValue = false; // don't allow click to fall thro' to the form handler...
        var elDate = document.getElementById(id);
        if (elDate) {
        	x = event.screenX - event.offsetX;
        	y = event.screenY - event.offsetY;
        	if (g\_wndCalendar) g\_wndCalendar.close(); // close any existing window...
        	g\_wndCalendar = window.open("calendar.aspx", "Calendar", "titlebar=0,left="+x+",top="+y+",toolbar=0,location=0,status=0,width=210,height=200,resizable=1", true);
        }
        

        }

        Cheers, Andy

        S Offline
        S Offline
        Sudee
        wrote on last edited by
        #3

        umm. I guess it's a browser problem. someday suggest me abt IFrame technique. let me first try that if not then pop-up window is a go. thnks again. Some dudes gotta know how to develop a prg. and some dudes just never get it at all.

        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