Hello,
I had the same issue too. However the position of my PopupPanel was wrong when scrolling right (the popup appears in ModalPopup which appears when editing GridView - and GridView is very wide). Here is the code:
1 <asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional">
2 <ContentTemplate>
3 <asp:Panel ID="Edycja_danych" runat="server" CssClass="modalBox" Style="display: none; position: relative;" Width="560px">
4 <div class="divCol">
5 Etap postępowania</div>
6 <div class="divColLast">
7 <asp:UpdatePanel runat="server" ID="UpdatePanel3" UpdateMode="Conditional">
8 <ContentTemplate>
9 <asp:TextBox ID="txtEtap" runat="server" Width="250" autocomplete="off" ReadOnly="True" style=""></asp:TextBox>
10 <asp:Panel ID="DropPanel" runat="server" CssClass="popupControl" Style="display :none;">
11 <asp:UpdatePanel runat="server" ID="up1">
12 <ContentTemplate>
13 <asp:RadioButtonList ID="RadioButtonList3" AutoPostBack="true" runat="server" style="display: none; width: 450px; font-weight: normal;" OnSelectedIndexChanged="RadioButtonList3_SelectedIndexChanged"></asp:RadioButtonList>
14 </ContentTemplate>
15 </asp:UpdatePanel>
16 </asp:Panel>
17 <cc1:PopupControlExtender ID="PopupControlExtender1" runat="server"
18 TargetControlID="txtEtap"
19 PopupControlID="DropPanel"
20 Position="Bottom"
21 />
22 </ContentTemplate>
23 </asp:UpdatePanel>
24 </div>
25 <div class="clearer">
26 </div>
27 </asp:Panel>
28 <asp:Button runat="server" ID="hiddenTargetControlForModalPopup" style="display:none; position: relative;"/>
29 <cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
30 TargetControlID="hiddenTargetControlForModalPopup"
31 PopupControlID="Edycja_danych"
32 CancelControlID="Cancel"
33 PopupDragHandleControlID="Tytul_panelu_edycji"
34 DropShadow="true"
35 />
36 </ContentTemplate>
37 </asp:UpdatePanel>
Important here is fact that I had to set "display: none;" to both DropPanel and RadioButtonList3 to make it work using the script provided below
I found a soultion somewhere but unfortunatelly some modifications to AJAXToolKit source were needed. I didn't have VS2005 to do those so I had to invent my own solution ;]
After 3 days here it is (finally):
Just add this javascript to your page: (it will run every 1ms)
1 "javascript" type="text/javascript">
2 3 function change_popup_offset()
4 {
5 var droppanel = $get('DropPanel');
6 var element = $get('RadioButtonList3');
7 if (element) element.style.display = 'none';
8 if (droppanel)
9 {
10 droppanel.style.position = 'absolute';
11 droppanel.style.left = '270px';
12 }
13 if ((element)&&(droppanel)&&(droppanel.style.display != 'none')&&(droppanel.style.left == '270px'))
14 {
15 element.style.display = 'block';
16 element.style.borderWidth = '2px';
17 element.style.borderStyle = 'outset';
18 element.style.borderColor = 'Blue';
19 }
20 }
21
22 setInterval('change_popup_offset()', 1);
23 // -->
24