Help!
I have set Drag=”True” on the ModalPopupExtender but my popup windows can’t be dragged to the side so users can see what’s on the main screen when editing records in the small popup window. The website is an ASP.NET 4.0 "NOT MVC" and the other ajaxToolKit controls work great.
Is there a CCS setting that can cause or prevent this from happening?
Is there another property I need to set in the ModalPopupExtender?
Is there something about my choice of controls for the PopupDragHandleControlID property.
I’m really stumped here and would appreciate any suggestions anybody may have to share.
Thanks,
Greg
<div id="DivQTY" runat="server" style="position:absolute; padding: 0px; margin-left:auto; margin-right:auto; text-align:center; background-color:lightcyan; white-space: nowrap; border-color:black; border-width:thin; border-top-style:solid; border-left-style:solid;
width:500px; display:none;">
<asp:Panel ID="PanelQTY" runat="server" HorizontalAlign="Center">
<asp:UpdatePanel ID="UpdatePanelQTY" UpdateMode="Conditional" runat="server">
<ContentTemplate>
<div id="DivQTYHeader" class="GridHeader" style="width:500px; height:30px; text-align:right; padding:0;">
<asp:Button ID="ButtonQTYCancel" runat="server" Text="X" OnClick="ButtonQTYCancel_Click" />
</div>
<div style="width:500px; text-align:center; padding:10px; display:inline-table;">
<table style="display:inline-table; border-bottom-style:none; padding: 15px 15px 15px 15px;">
<tr>
<td colspan="2" style="text-align:center;">
<asp:ValidationSummary ID="ValidationSummaryQTY" runat="server" ValidationGroup="QTY" ShowMessageBox="true" DisplayMode="SingleParagraph" HeaderText="Please enter a quantity as a whole number greater than zero using numeric characters only." ShowSummary="false"
EnableClientScript="true" />
</td>
</tr>
<tr>
<td style="text-align:left;">
<asp:Label ID="LabelQTY" CssClass="LabelBold" runat="server" Text="Quantity:"></asp:Label>
</td>
<td style="text-align:left;">
<asp:TextBox ID="TextBoxQTY" runat="server" CssClass="TextBoxCentered" CausesValidation="true" ValidationGroup="QTY"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidatorTextBoxQTY" runat="server" EnableClientScript="true" SetFocusOnError="true" Display="None" ToolTip="Quantity is a required field." ErrorMessage="" ForeColor="Red" ControlToValidate="TextBoxQTY" ValidationGroup="QTY"></asp:RequiredFieldValidator>
<asp:CompareValidator ID="CompareValidatorTextBoxQTY" runat="server" Operator="DataTypeCheck" Type="Integer" ControlToValidate="TextBoxQTY" ErrorMessage="" ToolTip="Quantity must be a whole number." Display="None" ForeColor="Red" ValidationGroup="QTY"/>
<asp:RangeValidator ID="RangeValidatorTextBoxQTY" ControlToValidate="TextBoxQTY" runat="server" ErrorMessage="" MinimumValue="1" MaximumValue="9999999999" ValidationGroup="QTY"></asp:RangeValidator>
</td>
</tr>
<tr>
<td colspan="2" style="text-align:center;">
<br />
<br />
<asp:Button ID="ButtonSaveQTY" runat="server" Text="Apply Quantity" Width="175px" OnClick="ButtonSaveQTY_Click" CausesValidation="true" ValidationGroup="QTY" />
<br />
<br />
</td>
</tr>
</table>
</div>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ButtonApplyQTY" />
</Triggers>
</asp:UpdatePanel>
</asp:Panel>
</div>
<ajaxToolkit:DropShadowExtender ID="DropShadowExtenderTextBoxQTY" runat="server" TargetControlID="DivQTY" Opacity=".8" Rounded="true" TrackPosition="true" />
<ajaxToolkit:ModalPopupExtender ID="ModalPopupExtenderQTY" Drag="true" TargetControlID="ButtonApplyQtyHidden" PopupDragHandleControlID="DivQTYHeader" PopupControlID="DivQTY" CancelControlID="ButtonQTYCancel" runat="server" RepositionMode="None"></ajaxToolkit:ModalPopupExtender>