Click here to Skip to main content
15,900,108 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I have some kind of weird problem. I am using ModalPopExtender of Ajax to popup a update panel. The same update panel is used to Drag the prop up. If I make another control to drag the pop up then it does not movable. If I take update panel as DragcontroID then popup is movable.

Now the problem is that, If I take update panel as DragContrlID then list box not allowing select any item from the same Listbox. I can do changes on the control of the popup like Textbox, RadioButton but list box is not allow.


Here is some code details.

XML
<ajax:ModalPopupExtender ID="mdlPupExtPerioComparison" runat="server" BackgroundCssClass="modalBackground"
                       CancelControlID="btnPerioComparisonCancel" OkControlID="btnPerioComparisonOk"
                       OnCancelScript="" OnOkScript="" Drag="true"  PopupControlID="updPnlComparison"
                       PopupDragHandleControlID="rowPerioComparisionHeader" TargetControlID="btnDummyPerioComparison">
                   </ajax:ModalPopupExtender>


XML
<asp:UpdatePanel ID="updPnlComparison" runat="server" RenderMode="Inline">
    <ContentTemplate>
        <div id="divPerioComparison" runat="server" class="HiddenControl">
            <asp:Panel ID="pnlPerioComparison" runat="server" Width="600px" Height="340px" BackColor="#EFEFEF">
                <table runat="server"   id="rowPerioComparisionHeader" class="Width100 Header" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="PaddingLeft4 Width100 Height20px">
                            <asp:Label ID="lblComparisonPopUpHeader" runat="server" Font-Bold="true"></asp:Label>
                        </td>
                        <td class="PaddingRight5">
                            <asp:Button ID="btnHeaderPopUpClose" CssClass="Button ButtonClose" runat="server"
                                OnClientClick="$find('mdlPupExtPerioComparison').hide(); return false;" />
                        </td>
                    </tr>
                </table>
</ContentTemplate>
</asp:UpdatePanel>

So I am trying to drag to popup but it is not dragging.
If I take Panel as DragControl Id then it is going to be fixed on the page at bottom and does not seems like a pop up.

Thanks
Anil
Posted
Updated 17-Oct-11 2:43am
v3
Comments
Herman<T>.Instance 11-Oct-11 5:57am    
please show your code. We cannot see sharp now where your problem starts.
Ram Balak Sharma 11-Oct-11 6:06am    
Please share some more detail
Tejas Vaishnav 11-Oct-11 6:34am    
the detail you provide is not that much to understand your problem, so please provide some more detail.

1 solution

ModalPopupExtender is not draggable you should be using a DragPanelExtender

ModelPopupExtender is meant for a fixed form popup which will not move until it is closed.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900