Do not use on any
shared computer
August 30, 2008 04:28am pdt
 
[x]
Attachment Details

Why does AJAX CalendarExtender display behind other controls?

Tags: calendarextender, ajax
A similar question was asked (Reference #22954794); however the accepted solution does not fix my problem.

I have an AJAX Tab Control with about 10 or 11 tabs.  Each tab has within it an update panel, and within that update panel an html table, relatively positioned.  In the top of each row I am using the Calendar Extender.  It works, but when the calendar drops down, it displays / renders BEHIND other server controls in the rows below it.  It displays over text, however.

I've searched the net for solutions.  The above reference in EE suggests using relative positioning, which I am doing (I tried absolute, as well, just to see what happened -- same thing).  I've put the text box, the extender control, and both between divs and given them z-indexes of 1000; no help.  I've used style="z-index:1000;" for the <tr> tag and the <td> tag; no help.

Other net sites have suggested that the problem is found in IE6, not in IE7, but I'm using both IE7 and Mozilla Firefox 2.0.0.11.

I'm a relative beginner with AJAX controls (and AJAX in general) so maybe I'm doing something stupid here.

Any help would be appreciated.  Thanks.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
<!--In this example, CalendarExtender2 is tied to the asp.net textbox control "txtDate".  When the calendar drops down, it displays behind other textboxes and dropdown list boxes.  It displays over text.-->
 
<%@ Page Language="VB" MasterPageFile="~/COS.master" AutoEventWireup="false" CodeFile="StatTab.aspx.vb" Inherits="StatTab" title="Untitled Page" %>
 
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
	Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
	&nbsp;
	<asp:ScriptManager ID="ScriptManager1" runat="server">
	</asp:ScriptManager>
	<cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="1" Style="position: relative" Width="90%">
		<cc1:TabPanel ID="TabPanel1" runat="server" HeaderText="TabPanel1">
			<ContentTemplate>
				<asp:UpdatePanel ID="UpdatePanel2" runat="server">
					<ContentTemplate>
						HEADER INFO:<br /><br />
						
						<table style="width: 100%; position: relative">
							<tr>
								<td colspan="2">
									Current
									Date:</td>
								<td colspan="4">
									<asp:TextBox ID="txtDate" runat="server" Style="position: relative"></asp:TextBox>
                                    <cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtDate">
                                    </cc1:CalendarExtender>
                                </td>
							</tr>
							<tr>
								<td style="width: 100px">
									Last Name:</td>
								<td colspan="2">
									<asp:TextBox ID="txtLast" runat="server" Style="position: relative"></asp:TextBox></td>
								<td style="width: 100px">
									First Name:</td>
								<td colspan="2">
									<asp:TextBox ID="txtFirst" runat="server" Style="position: relative"></asp:TextBox></td>
							</tr>
							<tr>
								<td style="width: 100px">
									Job Title:</td>
								<td colspan="2">
									<asp:TextBox ID="txtTitle" runat="server" Style="position: relative"></asp:TextBox></td>
								<td style="width: 100px">
									SSN:</td>
								<td colspan="2">
									<asp:TextBox ID="txtSSN" runat="server" Style="position: relative"></asp:TextBox></td>
							</tr>
							<tr>
								<td style="width: 100px">
									Office Location:</td>
								<td colspan="2">
									<asp:DropDownList ID="ddlLocation" runat="server" Style="position: relative" AutoPostBack="True">
										<asp:ListItem Value="JAK">Jackson</asp:ListItem>
										<asp:ListItem Value="MAD">Madison Heights</asp:ListItem>
										<asp:ListItem Value="RVR">RiverCrest</asp:ListItem>
										<asp:ListItem Value="CHI">Clubhouse Inspiriation</asp:ListItem>
										<asp:ListItem Value="OXF">Oxford Main</asp:ListItem>
										<asp:ListItem Value="FNT">Flint</asp:ListItem>
										<asp:ListItem Value="SAG">Saginaw</asp:ListItem>
										<asp:ListItem Value="BSL">Bayside Lodge</asp:ListItem>
										<asp:ListItem Value="OTH">Other</asp:ListItem>
									</asp:DropDownList></td>
								<td style="width: 100px">
									If Other...</td>
								<td colspan="2">
									<asp:TextBox ID="txtLocationOther" runat="server" Style="position: relative"></asp:TextBox></td>
							</tr>
						</table>
					</ContentTemplate>
				</asp:UpdatePanel>
			</ContentTemplate>
			<HeaderTemplate>
				Header
			</HeaderTemplate>
		</cc1:TabPanel>
'
'
'
'
' [Other Tab Panels
'
'
'
'
		
</asp:Content>
Start your free trial to view this solution
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Question Stats
Zone: Programming
Question Asked By: kmoloney
Solution Provided By: kmoloney
Participating Experts: 2
Solution Grade: B
Views: 219
Translate:
Loading Advertisement...
 
[+][-]Author Comment by kmoloney
Author Comment by kmoloney:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by kmoloney
Author Comment by kmoloney:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by Mortaza_doulaty

Rank: Master

Expert Comment by Mortaza_doulaty:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by Mortaza_doulaty

Rank: Master

Expert Comment by Mortaza_doulaty:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by Mortaza_doulaty

Rank: Master

Expert Comment by Mortaza_doulaty:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by kmoloney
Author Comment by kmoloney:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by Mortaza_doulaty

Rank: Master

Expert Comment by Mortaza_doulaty:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by kmoloney
Author Comment by kmoloney:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by Mortaza_doulaty

Rank: Master

Expert Comment by Mortaza_doulaty:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by kmoloney
Author Comment by kmoloney:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by kmoloney
Author Comment by kmoloney:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Accepted Solution by kmoloney
Accepted Solution by kmoloney:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Administrative Comment by Vee_Mod
Administrative Comment by Vee_Mod:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Open Discussion
Open Discussion
 
Comment by Vee_Mod
Closed, 500 points refunded.
Vee_Mod
Community Support Moderator
 
 
20080723-EE-VQP-34 / EE_QW_2_20070628