How do I get the CalendarExtender to show over a dropdown?http://forums.asp.net/t/1067281.aspx/1?How+do+I+get+the+CalendarExtender+to+show+over+a+dropdown+Fri, 13 Aug 2010 13:43:55 -040010672811547330http://forums.asp.net/p/1067281/1547330.aspx/1?How+do+I+get+the+CalendarExtender+to+show+over+a+dropdown+How do I get the CalendarExtender to show over a dropdown? <font size="2"> <p></font><font color="#0000ff" size="2">I've&nbsp;read some of the posts that cover this topic&nbsp;and solve it with IFRAME but that involves mouseover or click events&nbsp;of a div.&nbsp;The CalendarExtender provides a convenient PopupButtonID attribute to display the calendar by clicking an image. How do I get the calendar to show over the dropdown below it when I click the calendar image next to textbox?</font></p> <p><font color="#0000ff" size="2">Below is the aspx markup followed by snippet of styles. Any help would be appreciated.&nbsp;</font></p> <p><font color="#0000ff" size="2">&lt;</font><font color="#a31515" size="2">div</font><font size="2"> </font><font color="#ff0000" size="2">id</font><font color="#0000ff" size="2">=&quot;date&quot;&gt;<br> </font><font color="#0000ff" size="2">&lt;</font><font color="#a31515" size="2">span</font><font color="#0000ff" size="2">&gt;</font><font size="2">Date:</font><font color="#0000ff" size="2">&lt;/</font><font color="#a31515" size="2">span</font><font color="#0000ff" size="2">&gt;<br> </font><font color="#0000ff" size="2">&lt;</font><font color="#a31515" size="2">asp</font><font color="#0000ff" size="2">:</font><font color="#a31515" size="2">TextBox</font><font size="2"> </font><font color="#ff0000" size="2">ID</font><font color="#0000ff" size="2">=&quot;DateTextBox&quot;</font><font size="2"> </font><font color="#ff0000" size="2">runat</font><font color="#0000ff" size="2">=&quot;server&quot;</font><font size="2"> </font><font color="#ff0000" size="2">EnableViewState</font><font color="#0000ff" size="2">=&quot;False&quot;&gt;&lt;/</font><font color="#a31515" size="2">asp</font><font color="#0000ff" size="2">:</font><font color="#a31515" size="2">TextBox</font><font color="#0000ff" size="2">&gt;<br> </font><font color="#0000ff" size="2">&lt;</font><font color="#a31515" size="2">asp</font><font color="#0000ff" size="2">:</font><font color="#a31515" size="2">Image</font><font size="2"> </font><font color="#ff0000" size="2">ID</font><font color="#0000ff" size="2">=&quot;CalendarImage&quot;</font><font size="2"> </font><font color="#ff0000" size="2">ImageUrl</font><font color="#0000ff" size="2">=&quot;~/App_Themes/Default/Images/Calendar_scheduleHS.png&quot;</font><font size="2"> </font><font color="#ff0000" size="2">runat</font><font color="#0000ff" size="2">=&quot;server&quot;</font><font size="2"> </font><font color="#0000ff" size="2">/&gt;<br> </font><font color="#0000ff" size="2">&lt;</font><font color="#a31515" size="2">AjaxControlToolkit</font><font color="#0000ff" size="2">:</font><font color="#a31515" size="2">CalendarExtender</font><font size="2"> </font><font color="#ff0000" size="2">ID</font><font color="#0000ff" size="2">=&quot;CalendarButtonExtender&quot;</font><font size="2"> </font><font color="#ff0000" size="2">TargetControlID</font><font color="#0000ff" size="2">=&quot;DateTextBox&quot;</font><font size="2"> </font><font color="#ff0000" size="2">PopupButtonID</font><font color="#0000ff" size="2">=&quot;CalendarImage&quot;</font><font size="2"> </font><font color="#ff0000" size="2">CssClass</font><font color="#0000ff" size="2">=&quot;MyCalendar&quot;</font><font size="2"> </font><font color="#ff0000" size="2">runat</font><font color="#0000ff" size="2">=&quot;server&quot;</font><font size="2"> </font><font color="#0000ff" size="2">/&gt;<br> </font><font color="#0000ff" size="2">&lt;</font><font color="#a31515" size="2">asp</font><font color="#0000ff" size="2">:</font><font color="#a31515" size="2">CompareValidator</font><font size="2"> </font><font color="#ff0000" size="2">ID</font><font color="#0000ff" size="2">=&quot;CompareValidator5&quot;</font><font size="2"> </font><font color="#ff0000" size="2">runat</font><font color="#0000ff" size="2">=&quot;server&quot;</font><font size="2"> </font><font color="#ff0000" size="2">ErrorMessage</font><font color="#0000ff" size="2">=&quot;Must enter a valid date.&quot;</font><font size="2"> </font><font color="#ff0000" size="2">Text</font><font color="#0000ff" size="2">=&quot;*&quot;</font><font size="2"> </font><font color="#ff0000" size="2">ControlToValidate</font><font color="#0000ff" size="2">=&quot;DateTextBox&quot;</font><font size="2"> </font><font color="#ff0000" size="2">Operator</font><font color="#0000ff" size="2">=&quot;DataTypeCheck&quot;</font><font size="2"> </font><font color="#ff0000" size="2">Type</font><font color="#0000ff" size="2">=&quot;Date&quot;&gt;&lt;/</font><font color="#a31515" size="2">asp</font><font color="#0000ff" size="2">:</font><font color="#a31515" size="2">CompareValidator</font><font color="#0000ff" size="2">&gt;<br> </font><font color="#0000ff" size="2">&lt;/</font><font color="#a31515" size="2">div</font><font color="#0000ff" size="2">&gt;</p> </font><font size="2"> <p></font><font color="#0000ff" size="2">&lt;</font><font color="#a31515" size="2">div</font><font size="2"> </font><font color="#ff0000" size="2">id</font><font color="#0000ff" size="2">=&quot;timeofday&quot;&gt;<br> </font><font color="#0000ff" size="2">&lt;</font><font color="#a31515" size="2">span</font><font color="#0000ff" size="2">&gt;</font><font size="2">Time of Day:</font><font color="#0000ff" size="2">&lt;/</font><font color="#a31515" size="2">span</font><font color="#0000ff" size="2">&gt;<br> </font><font color="#0000ff" size="2">&lt;</font><font color="#a31515" size="2">asp</font><font color="#0000ff" size="2">:</font><font color="#a31515" size="2">DropDownList</font><font size="2"> </font><font color="#ff0000" size="2">ID</font><font color="#0000ff" size="2">=&quot;TimeOfDayDropDownList&quot;</font><font size="2"> </font><font color="#ff0000" size="2">runat</font><font color="#0000ff" size="2">=&quot;server&quot;</font><font size="2"> </font><font color="#ff0000" size="2">DataSourceID</font><font color="#0000ff" size="2">=&quot;TimeOfDayDataSource&quot;</font><font size="2"> </font><font color="#ff0000" size="2">DataTextField</font><font color="#0000ff" size="2">=&quot;Description&quot;</font><font size="2"> </font><font color="#ff0000" size="2">DataValueField</font><font color="#0000ff" size="2">=&quot;TimeOfDayID&quot;</font><font size="2"> </font><font color="#ff0000" size="2">EnableViewState</font><font color="#0000ff" size="2">=&quot;False&quot;&gt;&lt;/</font><font color="#a31515" size="2">asp</font><font color="#0000ff" size="2">:</font><font color="#a31515" size="2">DropDownList</font><font color="#0000ff" size="2">&gt;<br> </font><font color="#0000ff" size="2">&lt;</font><font color="#a31515" size="2">asp</font><font color="#0000ff" size="2">:</font><font color="#a31515" size="2">ObjectDataSource</font><font size="2"> </font><font color="#ff0000" size="2">ID</font><font color="#0000ff" size="2">=&quot;TimeOfDayDataSource&quot;</font><font size="2"> </font><font color="#ff0000" size="2">runat</font><font color="#0000ff" size="2">=&quot;server&quot;</font><font size="2"> </font><font color="#ff0000" size="2">SelectMethod</font><font color="#0000ff" size="2">=&quot;GetTimeOfDay&quot;</font><font size="2"> </font><font color="#ff0000" size="2">TypeName</font><font color="#0000ff" size="2">=&quot;FeederDataTableAdapters.TimeOfDayTableAdapter&quot;&gt;&lt;/</font><font color="#a31515" size="2">asp</font><font color="#0000ff" size="2">:</font><font color="#a31515" size="2">ObjectDataSource</font><font color="#0000ff" size="2">&gt;<br> </font><font color="#0000ff" size="2">&lt;/</font><font color="#a31515" size="2">div</font><font color="#0000ff" size="2">&gt;</font></p> <p><font color="#0000ff">/* CSS File */</font></p> <font color="#0000ff" size="2"><font color="#a31515" size="2"> <p></font><font size="2"><font color="#a31515" size="2">#date </font><font size="2">{ </font><font color="#ff0000" size="2">position</font><font size="2">: </font><font color="#0000ff" size="2">absolute</font><font size="2">; </font><font color="#ff0000" size="2">top</font><font size="2">: </font><font color="#0000ff" size="2">2em</font><font size="2">; </font><font color="#ff0000" size="2">left</font><font size="2">: </font><font color="#0000ff" size="2">1.4em</font><font size="2">; }<br> </font><font color="#a31515" size="2">#date</font><font color="#000000" size="2"> </font><font color="#a31515" size="2">input </font><font size="2">{ </font><font color="#ff0000" size="2">width</font><font size="2">: </font><font color="#0000ff" size="2">7em</font><font size="2">; }<br> <font color="#a31515">#timeofday </font><font size="2">{ </font><font color="#ff0000" size="2">position</font><font size="2">: </font><font color="#0000ff" size="2">absolute</font><font size="2">; </font><font color="#ff0000" size="2">top</font><font size="2">: </font><font color="#0000ff" size="2">4em</font><font size="2">; </font><font color="#ff0000" size="2">left</font><font size="2">: </font><font color="#0000ff" size="2">1.4em</font><font size="2">; }<br> </font></p> </font></font></font> 2007-01-24T22:22:14-05:001549360http://forums.asp.net/p/1067281/1549360.aspx/1?Re+How+do+I+get+the+CalendarExtender+to+show+over+a+dropdown+Re: How do I get the CalendarExtender to show over a dropdown? <p>The following page works fine for me in IE7 and IE6. What about you? If it breaks, what browser are you using?</p> <pre class="prettyprint">&lt;%@ Page Language=&quot;C#&quot; %&gt; &lt;%@ Register Assembly=&quot;AjaxControlToolkit&quot; Namespace=&quot;AjaxControlToolkit&quot; TagPrefix=&quot;ajaxToolkit&quot; %&gt; &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt; &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; &lt;head runat=&quot;server&quot;&gt; &lt;title&gt;Sample Page&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt; &lt;asp:ScriptManager ID=&quot;ScriptManager1&quot; runat=&quot;server&quot; /&gt; &lt;asp:TextBox ID=&quot;TB&quot; runat=&quot;server&quot; /&gt; &lt;ajaxToolkit:CalendarExtender ID=&quot;C&quot; runat=&quot;server&quot; TargetControlID=&quot;TB&quot; /&gt; &lt;br /&gt; &lt;asp:DropDownList runat=&quot;server&quot;&gt; &lt;asp:ListItem Text=&quot;Item&quot; /&gt; &lt;/asp:DropDownList&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt;</pre>&nbsp; 2007-01-25T23:01:38-05:001550273http://forums.asp.net/p/1067281/1550273.aspx/1?Re+How+do+I+get+the+CalendarExtender+to+show+over+a+dropdown+Re: How do I get the CalendarExtender to show over a dropdown? <p>The code you wrote works great except that I needed to register the System.Web.Extensions. When I wrapped the textbox and dropdown in divs the calendar appears behind the dropdown. Applying css and adjusting the z-index fixed the issue. I tried adjusting the z-index before posting but I must have had an old css file stuck in my browser cache. Below is the working code. Remove the z-index from both sytles to see the calendar go behind the dropdown.</p> <p>&nbsp;Thanks.</p> <pre class="prettyprint">&lt;%@ Page Language=&quot;C#&quot; %&gt; &lt;%@ Register Assembly=&quot;System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; Namespace=&quot;System.Web.UI&quot; TagPrefix=&quot;asp&quot; %&gt; &lt;%@ Register Assembly=&quot;AjaxControlToolkit&quot; Namespace=&quot;AjaxControlToolkit&quot; TagPrefix=&quot;ajaxToolkit&quot; %&gt; &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt; &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; &lt;head id=&quot;Head1&quot; runat=&quot;server&quot;&gt; &lt;title&gt;Sample Page&lt;/title&gt; &lt;style&gt; #div1 { position: absolute; top: 6em; left: 3em; z-index: 101; } #div2 { position: absolute; top: 8em; left: 4em; z-index: 100; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt; &lt;asp:ScriptManager ID=&quot;ScriptManager1&quot; runat=&quot;server&quot; /&gt; &lt;div id=&quot;div1&quot;&gt; &lt;asp:TextBox ID=&quot;TB&quot; runat=&quot;server&quot; /&gt; &lt;ajaxToolkit:CalendarExtender ID=&quot;C&quot; runat=&quot;server&quot; TargetControlID=&quot;TB&quot; /&gt; &lt;br /&gt; &lt;/div&gt; &lt;div id=&quot;div2&quot;&gt; &lt;asp:DropDownList ID=&quot;DropDownList1&quot; runat=&quot;server&quot;&gt; &lt;asp:ListItem Text=&quot;Item&quot; /&gt; &lt;/asp:DropDownList&gt; &lt;/div&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt;</pre>&nbsp; 2007-01-26T14:30:22-05:001550925http://forums.asp.net/p/1067281/1550925.aspx/1?Re+How+do+I+get+the+CalendarExtender+to+show+over+a+dropdown+Re: How do I get the CalendarExtender to show over a dropdown? <p>Thank you for the demonstration!</p> <p>As it happens, once you start modifying the position style of things (done here with position:absolute), you take them out of the usual z-index process and bump them way up. So in this case, as soon as you absolutely position div2, you raise it above the Calendar and start hitting problems. Read more here if you're interested: <a href="http://www.w3.org/TR/CSS21/visuren.html#q29"> http://www.w3.org/TR/CSS21/visuren.html#q29</a>&nbsp;and <a href="http://www.w3.org/TR/CSS21/zindex.html"> http://www.w3.org/TR/CSS21/zindex.html</a>.</p> <p>So because Calendar seems to work correctly under the normal HTML/CSS behavior as you confirmed above, I'm inclined to say that this is not a bug with Calendar, but rather a consequence of how CSS rules are applied.</p> 2007-01-26T21:04:27-05:001554155http://forums.asp.net/p/1067281/1554155.aspx/1?Re+How+do+I+get+the+CalendarExtender+to+show+over+a+dropdown+Re: How do I get the CalendarExtender to show over a dropdown? Seeing as how this issue has come up for some other folks as well, I'm wondering if we should do something like add a ZIndex property to CalendarExtender so that people get better control of where their Calendar sits in the CSS z-index stack... 2007-01-29T20:33:16-05:001554180http://forums.asp.net/p/1067281/1554180.aspx/1?Re+How+do+I+get+the+CalendarExtender+to+show+over+a+dropdown+Re: How do I get the CalendarExtender to show over a dropdown? <p>If it is merely a z-index issue you can try the following:</p> <pre class="prettyprint">&lt;style type=&quot;text/css&quot;&gt; .ajax__calendar_container { z-index : 1000 ; } &lt;/style&gt;</pre> <p>We are still working on the documentation for the CSS rules that can be used to redefine Calendar and Tabs.&nbsp; They use nested CSS class selectors to scope their layout. The calendar's &quot;container&quot; div tag is the highest styleable element, so you can update the default CSS class by adding a <em>.ajax__calendar_container</em>&nbsp;rule to either the head tag or to a linked stylesheet. </p> <p>[ FYI: the CSS class name specifically is: ajax<em>(underscore)(underscore)</em>calendar<em>(underscore)</em>container ]</p> <p>Ron</p> 2007-01-29T20:45:10-05:001590323http://forums.asp.net/p/1067281/1590323.aspx/1?Re+How+do+I+get+the+CalendarExtender+to+show+over+a+dropdown+Re: How do I get the CalendarExtender to show over a dropdown? <p>In my browser (version 6.0.2900.2180.xpsp_sp2_gdr.050301-1519) none of the examples work properly.</p> <p>I thought there was a movement afoot to use an iframe or something.</p> <p>Byron</p> 2007-02-22T15:52:34-05:001590370http://forums.asp.net/p/1067281/1590370.aspx/1?Re+How+do+I+get+the+CalendarExtender+to+show+over+a+dropdown+Re: How do I get the CalendarExtender to show over a dropdown? <blockquote><span class="icon-blockquote"></span> <h4>rbuckton</h4> <p>If it is merely a z-index issue you can try the following:</p> <pre class="prettyprint">&lt;style type=&quot;text/css&quot;&gt; .ajax__calendar_container { z-index : 1000 ; } &lt;/style&gt;</pre> <p>We are still working on the documentation for the CSS rules that can be used to redefine Calendar and Tabs.&nbsp; They use nested CSS class selectors to scope their layout. The calendar's &quot;container&quot; div tag is the highest styleable element, so you can update the default CSS class by adding a <i>.ajax__calendar_container</i>&nbsp;rule to either the head tag or to a linked stylesheet. </p> <p>[ FYI: the CSS class name specifically is: ajax<i>(underscore)(underscore)</i>calendar<i>(underscore)</i>container ]</p> <p>Ron</p> <p></p> </blockquote> <p></p> <p>&nbsp;I am having a similar issue with the ValidatorCalloutExtender.&nbsp; I posted about it here: <a href="/thread/1589043.aspx">http://forums.asp.net/thread/1589043.aspx</a></p> <p>If you can adjust the style of the calendar container as demonstrated above, can you do the same to the ValidatorCalloutExtender?<br> &nbsp;</p> 2007-02-22T16:26:40-05:001592225http://forums.asp.net/p/1067281/1592225.aspx/1?Re+How+do+I+get+the+CalendarExtender+to+show+over+a+dropdown+Re: How do I get the CalendarExtender to show over a dropdown? <p>Funny - i tried putting that exact same page in my site and it doesn't display in IE6 properly...not sure why.</p> <p>Byron</p> <p></p> <blockquote><span class="icon-blockquote"></span> <h4>David Anson</h4> <p></p> <p>The following page works fine for me in IE7 and IE6. What about you? If it breaks, what browser are you using?</p> <pre class="prettyprint">&lt;%@ Page Language=&quot;C#&quot; %&gt; &lt;%@ Register Assembly=&quot;AjaxControlToolkit&quot; Namespace=&quot;AjaxControlToolkit&quot; TagPrefix=&quot;ajaxToolkit&quot; %&gt; &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt; &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; &lt;head runat=&quot;server&quot;&gt; &lt;title&gt;Sample Page&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt; &lt;asp:ScriptManager ID=&quot;ScriptManager1&quot; runat=&quot;server&quot; /&gt; &lt;asp:TextBox ID=&quot;TB&quot; runat=&quot;server&quot; /&gt; &lt;ajaxToolkit:CalendarExtender ID=&quot;C&quot; runat=&quot;server&quot; TargetControlID=&quot;TB&quot; /&gt; &lt;br /&gt; &lt;asp:DropDownList runat=&quot;server&quot;&gt; &lt;asp:ListItem Text=&quot;Item&quot; /&gt; &lt;/asp:DropDownList&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt;</pre>&nbsp;</blockquote> 2007-02-23T16:59:29-05:001596207http://forums.asp.net/p/1067281/1596207.aspx/1?Re+How+do+I+get+the+CalendarExtender+to+show+over+a+dropdown+Re: How do I get the CalendarExtender to show over a dropdown? <p>FYI from just-updated <a class="" href="http://www.codeplex.com/AtlasControlToolkit/WorkItem/View.aspx?WorkItemId=7559"> work item 7759</a>:</p> <p><em>A demonstration of the problem reported by this owrk item can be found in attached file Default7.aspx (courtesy </em><a href="http://forums.asp.net/thread/1550925.aspx"><em>http://forums.asp.net/thread/1550925.aspx</em></a><em>).</em></p> <p><em>My initial investigation led me to write:</em></p> <p><em>&quot;As it happens, once you start modifying the position style of things (done here with position:absolute), you take them out of the usual z-index process and bump them way up. So in this case, as soon as you absolutely position div2, you raise it above the Calendar and start hitting problems. Read more here if you're interested: </em> <a href="http://www.w3.org/TR/CSS21/visuren.html#q29"><em>http://www.w3.org/TR/CSS21/visuren.html#q29</em></a><em> and </em><a href="http://www.w3.org/TR/CSS21/zindex.html"><em>http://www.w3.org/TR/CSS21/zindex.html</em></a><em>.</em></p> <p><em>So because Calendar seems to work correctly under the normal HTML/CSS behavior as you confirmed above, I'm inclined to say that this is not a bug with Calendar, but rather a consequence of how CSS rules are applied.&quot;</em></p> <p><em>The Calendar author's suggestion for how to work around this on affected sites (also from </em><a href="http://forums.asp.net/thread/1550925.aspx"><em>http://forums.asp.net/thread/1550925.aspx</em></a><em>) is to add the following to the page in order to give a z-index style to the Calendar and break out of the CSS situation I describe above:</em></p> <p><em>&lt;style type=&quot;text/css&quot;&gt;<br> .ajax__calendar_container { z-index : 1000 ; }<br> &lt;/style&gt;</em></p> <p><em>This suggestion is valid CSS and works in most browsers. Unfortunately, it does not work in IE6/7 - an explanation of the reason why can be found at </em><a href="http://www.aplus.co.yu/lab/z-pos/"><em>http://www.aplus.co.yu/lab/z-pos/</em></a><em>. Basically, IE6/7 get the CSS rules wrong here and so the only apparant workaround for IE6/7 seems to be to add a z-index style to the Calendar's parent element instead. This is not something Calendar can safely do in general, so it's left to the page author to do so as necessary. The attached file contains both workarounds (commented-out) for demonstration purposes. We will add a &quot;known issue&quot; to the sample page.</em></p> 2007-02-27T04:56:00-05:001602749http://forums.asp.net/p/1067281/1602749.aspx/1?Re+How+do+I+get+the+CalendarExtender+to+show+over+a+dropdown+Re: How do I get the CalendarExtender to show over a dropdown? <p class="MsoNormal" style="margin:0in 0in 0pt"><font face="Times New Roman" size="3">OK!!! This may have been corrected for comboboxes in the March 07 release, but is still occurring when the CalendarExtender is enclosed within another &quot;bordered&quot; control; ie: a grid whose size is delimited by a panel control. Maybe its me, but it seems to me that a Calendar control such as this should <strong><u>ALWAYS</u></strong> have the top most x-index. Btw, using IE7, applying the z-index within .ajax__calendar_container has no effect whatsoever!!! In order to make this control useful, MS really needs to think about adding some additional properties like being able to set the z order or visibility persistence, so at least user can scroll through the grid to make the calendar visible.</font></p> 2007-03-02T18:37:24-05:001607328http://forums.asp.net/p/1067281/1607328.aspx/1?Re+How+do+I+get+the+CalendarExtender+to+show+over+a+dropdown+Re: How do I get the CalendarExtender to show over a dropdown? <p>Last released didn't fix it for me. I still have the same problems displaying the calendar in a panel enclosed FormView. I don't get why the workitem is removed everytime stating it's fixed, cause it's not. There's a lot of documentation around about this problem: IE6 always renders select boxes on top of allmost all of the other components. The only way to fix this is rendering an iframe above the selectbox (one of the few controls which are rendered above a selectbox) and rendering the calendar above that (since it has no problem rendering above an iframe). This is done with the z-index property. </p> <p>For more info: http://support.microsoft.com/kb/177378. Note that only the select box is listed as a windowed element. Thats exactly why this behaviour only occurs in IE6 and not in FF (not sure about IE7); FF's render engine doesn't render select elements above the rest of the page.<br> &nbsp;</p> 2007-03-06T14:18:05-05:001620197http://forums.asp.net/p/1067281/1620197.aspx/1?Re+How+do+I+get+the+CalendarExtender+to+show+over+a+dropdown+Re: How do I get the CalendarExtender to show over a dropdown? <p>After installing the latest release I also noticed that I was still seeing calendars being displayed underneath select boxes. After looking into this issue I noticed that the iframe wasn't being positioned correctly when the calendar was inside a container that had been positioned relative or absolute.</p> <p>I added the following to my main stylesheet to position the iframe correctly for the above situation.</p> <pre class="prettyprint">.ajax__calendar { position: relative; } .ajax__calendar iframe { left: 0px !important; top: 0px !important; }</pre> <p>Note: I have not tested this under any other conditions.</p> <p>Hopefully this helps.</p> 2007-03-14T15:34:42-04:001628238http://forums.asp.net/p/1067281/1628238.aspx/1?Re+How+do+I+get+the+CalendarExtender+to+show+over+a+dropdown+Re: How do I get the CalendarExtender to show over a dropdown? That didn't do it. For some reason the iframe is rendered <b>after </b>the select boxes and therefore doesn't work properly. I've been trying some css properties on the calendar and iframe class, but I can't get the iframe to display properly where I want it to. <br> 2007-03-20T11:50:52-04:001628341http://forums.asp.net/p/1067281/1628341.aspx/1?Re+How+do+I+get+the+CalendarExtender+to+show+over+a+dropdown+Re: How do I get the CalendarExtender to show over a dropdown? <p>Fixed it! The IFRAME is rendered as a new element in the parent node of the textbox; therefore it is placed after all the other elements, rendering in the wrong spot. This is easily fixed by surrounding the input and calendarextender with a DIV. Now the position is still wrong and the frame isn't begin displayed correctly. Adding the following code to your stylesheet should fix that:</p> <p>.ajax__calendar {<br> &nbsp;&nbsp;&nbsp; position: relative;<br> &nbsp;&nbsp;&nbsp; left: 0px !important;<br> &nbsp;&nbsp;&nbsp; top: 0px !important;<br> &nbsp;&nbsp;&nbsp; visibility: visible; display: block;<br> }<br> .ajax__calendar iframe <br> {<br> &nbsp;&nbsp;&nbsp; left: 0px !important;<br> &nbsp;&nbsp;&nbsp; top: 0px !important;<br> }</p> <p>For me this works fine in both IE and FF, but I can imagine it depends on the structure of your site. But with all the tips above I think the problem can be solved in 9/10 times.<br> <br> &nbsp;</p> 2007-03-20T12:56:07-04:001639846http://forums.asp.net/p/1067281/1639846.aspx/1?Re+How+do+I+get+the+CalendarExtender+to+show+over+a+dropdown+Re: How do I get the CalendarExtender to show over a dropdown? <p>I have a CalendarControl inside a modalPopup and in order to get the calendar to popup over top of my modalPopup I had to set the Z-Index to a really high number such as</p> <p>.ajax__calendar_container { z-index : 100003 ; }</p> <p>this works in both IE 6 and FF for me...setting the z-index to only 1000 wont work well b/c the modal popup and the modalPopup background use z-index 1000 and 1001...setting the z-index to 1003 worked fine in IE6 but FF required the much high z-index to work for some unknown reason, but none the less...I got it to work with the above CSS code.</p> <p>Hope that helps,</p> <p>Greg<br> <br> -- <br> <a href="http://www.gregbenoit.com/">GregBenoit.com</a> <br> <a href="http://www.precisionsoftware.net/">PrecisionSoftware.Net</a> <br> <a href="http://www.qgenda.com/">QGenda.com</a> <br> <a href="http://www.staffkeeper.com/">StaffKeeper.com</a></p> 2007-03-27T21:44:03-04:001653972http://forums.asp.net/p/1067281/1653972.aspx/1?Re+How+do+I+get+the+CalendarExtender+to+show+over+a+dropdown+Re: How do I get the CalendarExtender to show over a dropdown? <blockquote><span class="icon-blockquote"></span> <h4>jaspersiegmund</h4> <p>Fixed it! The IFRAME is rendered as a new element in the parent node of the textbox; therefore it is placed after all the other elements, rendering in the wrong spot. This is easily fixed by surrounding the input and calendarextender with a DIV. Now the position is still wrong and the frame isn't begin displayed correctly. Adding the following code to your stylesheet should fix that:</p> <p>.ajax__calendar {<br> &nbsp;&nbsp;&nbsp; position: relative;<br> &nbsp;&nbsp;&nbsp; left: 0px !important;<br> &nbsp;&nbsp;&nbsp; top: 0px !important;<br> &nbsp;&nbsp;&nbsp; visibility: visible; display: block;<br> }<br> .ajax__calendar iframe <br> {<br> &nbsp;&nbsp;&nbsp; left: 0px !important;<br> &nbsp;&nbsp;&nbsp; top: 0px !important;<br> }</p> <p>For me this works fine in both IE and FF, but I can imagine it depends on the structure of your site. But with all the tips above I think the problem can be solved in 9/10 times.<br> <br> &nbsp;</p> <p></p> </blockquote> <p></p> <p>&nbsp;</p> <p>The above worked for me, but now there is a noticable lag between when the image is clicked (i am using an image to popup the calendar) and when the calendar actually appears, and between when the date is selected and when it appears in the box, functional, but annoying&nbsp;</p> 2007-04-05T20:47:28-04:001653982http://forums.asp.net/p/1067281/1653982.aspx/1?Re+How+do+I+get+the+CalendarExtender+to+show+over+a+dropdown+Re: How do I get the CalendarExtender to show over a dropdown? <blockquote><span class="icon-blockquote"></span> <h4>madrak</h4> <p>&nbsp;</p> <p>The above worked for me, but now there is a noticable lag between when the image is clicked (i am using an image to popup the calendar) and when the calendar actually appears, and between when the date is selected and when it appears in the box, functional, but annoying&nbsp;</p> <p></p> </blockquote> <p></p> <p>&nbsp;</p> <p>If ever there was an argument for deleting a post, this is it.&nbsp; The lag is there regardless, i just hadn't specifically noticed it before, the lag seems much worse in IE than in FF, so when i switched to ie i noticed the popunder problem more than the lag, but once i fixed the popunder problem, i noticed the lag&nbsp;</p> 2007-04-05T20:53:47-04:001654037http://forums.asp.net/p/1067281/1654037.aspx/1?Re+How+do+I+get+the+CalendarExtender+to+show+over+a+dropdown+Re: How do I get the CalendarExtender to show over a dropdown? <p>OK. For all tose for whom the various above soplutions did not work, I have run into anotehr coningency which apparently affect CalendarEntendar visability. </p> <p>&nbsp;In&nbsp;may legacy applications there may be instances where a pages &lt;!DOCTYPE&gt; will be marked as HTML4.0:</p> <font color="#0000ff" size="2"> <p>&lt;!</font><font color="#a31515" size="2">DOCTYPE</font><font size="2"> </font><font color="#ff0000" size="2">HTML</font><font size="2"> </font><font color="#ff0000" size="2">PUBLIC</font><font size="2"> </font><font color="#0000ff" size="2">&quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;</p> </font> <p>In such cases. You migh try changing this to:</p> <font color="#0000ff" size="2"> <p>&lt;!</font><font color="#a31515" size="2">DOCTYPE</font><font size="2"> </font><font color="#ff0000" size="2">html</font><font size="2"> </font><font color="#ff0000" size="2">PUBLIC</font><font size="2"> </font><font color="#0000ff" size="2">&quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;</font><font size="2"> </font><font color="#0000ff" size="2">&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</font></p> <p>Of course, while this will affect your layout which&nbsp;may require a fair amount of adjustment, it seems to do the trick.<font color="#0000ff"><font size="2"></p> </font></font> 2007-04-05T21:42:40-04:001654040http://forums.asp.net/p/1067281/1654040.aspx/1?Re+How+do+I+get+the+CalendarExtender+to+show+over+a+dropdown+Re: How do I get the CalendarExtender to show over a dropdown? <span style="font-size:10pt"><font face="Times New Roman"> <p><span style="font-size:10pt"><strong>&nbsp;Sorry!&nbsp;reposting&nbsp;due to&nbsp;numerous unedited typos ...&nbsp;</strong></span></p> </font></span> <p><span style="font-size:10pt"><font face="Times New Roman">OK. For all those for whom the various above solutions did not work, I have run into another contingency which apparently affect CalendarExtender visibility. </font></span></p> <p><span style="font-size:10pt"><font face="Times New Roman">&nbsp;In&nbsp;may legacy applications there may be instances where a pages &lt;!DOCTYPE&gt; will be marked as HTML4.0:</font></span></p> <p><span style="font-size:10pt; color:blue"><font face="Times New Roman">&lt;!</font></span></p> <p class="MsoNormal" style="margin:0in 0in 0pt"><font face="Times New Roman"><span style="font-size:10pt; color:#a31515">DOCTYPE</span><span style="font-size:10pt"> <span style="color:red">HTML</span> <span style="color:red">PUBLIC</span> <span style="color:blue"> &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;</span> </span></font></p> <p><span style="font-size:10pt"><font face="Times New Roman">In such cases. You might try changing this to:</font></span></p> <p><span style="font-size:10pt; color:blue"><font face="Times New Roman">&lt;!</font></span></p> <p class="MsoNormal" style="margin:0in 0in 0pt"><font face="Times New Roman"><span style="font-size:10pt; color:#a31515">DOCTYPE</span><span style="font-size:10pt"> <span style="color:red">html</span> <span style="color:red">PUBLIC</span> <span style="color:blue"> &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;</span> <span style="color:blue">&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</span> </span></font></p> <p><span style="font-size:10pt"><font face="Times New Roman">Of course, while this will affect your layout which&nbsp;may require a fair amount of adjustment, it seems to do the trick.</font></span></p> 2007-04-05T21:46:08-04:00