Last post Oct 08, 2013 03:52 AM by Balajikasiraj
Member
1 Points
47 Posts
Oct 08, 2013 03:10 AM|Balajikasiraj|LINK
I have model popup extender with in update pannel. Inside modelup extender i have a list box which gets enabled only after selecting an option from combo box.
When i click the disabled listbox model popup extender closed automatically.
Is there any solution?
Participant
1570 Points
495 Posts
Oct 08, 2013 03:22 AM|sumitjain231|LINK
Please paste some code.
it seems you have placed javascript on onclick event of combobox that trigger cancel event of model popup
Oct 08, 2013 03:30 AM|Balajikasiraj|LINK
<cc1:ModalPopupExtender ID="modelPopupControlExtender1" runat="server" TargetControlID="lbldummy" PopupControlID="pnladdteam" DropShadow="false" PopupDragHandleControlID="teamgrid" BackgroundCssClass="modalBackground" CancelControlID="lbldummycancel" RepositionMode="RepositionOnWindowResize"> </cc1:ModalPopupExtender>
<td align="center" class="auto-style12">
<asp:ListBox ID="lstAvailableResrc" runat="server" Height="100%" Width="75%" SelectionMode="Multiple" AutoPostBack="true" ToolTip="Available Resources" OnSelectedIndexChanged="lstAvailableResrc_SelectedIndexChanged"></asp:ListBox> </td>
<asp:Panel runat ="server" ID="pnlprojdetails" Visible ="false" ClientIDMode ="Static" > <div style="border-radius: 3px; background: #EEE; box-shadow:inset 0px 1px 3px #777; padding: 10px;"> <table align="center" style="width: 100%; margin-left: 0px;"> <tr> <tr> <td class="auto-style2" style="text-align:left;"> <label> <strong>Project Start Date:</strong></label></td> <td class="auto-style3" style="text-align:left;"> <asp:Label ID="projstartdate" runat="server">Nil</asp:Label> </td> </tr> <tr> <td class="auto-style1" style="text-align:left;"> <label> <strong>Project End Date:</strong></label></td> <td class="auto-style18" style="text-align:left;"> <asp:Label ID="projenddate" runat="server">Nil</asp:Label> </td> </tr> </table> </div> </asp:Panel> <br /> <asp:Label ID="lblpopupalert" runat="server" ClientIDMode ="Static" ></asp:Label> <br /> </div> </div> </asp:Panel>
Oct 08, 2013 03:42 AM|sumitjain231|LINK
your listbox is the cause of the issue. even in the disable state it do postback due to issue in high level javascript.
you can place debug point to your selection index change event and verify it.
the immediate solution is call the show method of the model popup in selectionindex change event. that will resolve the issue.
Oct 08, 2013 03:52 AM|Balajikasiraj|LINK
comba list name selection it shows details from database. name contionously change popup closed .
how solve this problem
Member
1 Points
47 Posts
Model popup extender closing automatically
Oct 08, 2013 03:10 AM|Balajikasiraj|LINK
I have model popup extender with in update pannel. Inside modelup extender i have a list box which gets enabled only after selecting an option from combo box.
When i click the disabled listbox model popup extender closed automatically.
Is there any solution?
Participant
1570 Points
495 Posts
Re: Model popup extender closing automatically
Oct 08, 2013 03:22 AM|sumitjain231|LINK
Please paste some code.
it seems you have placed javascript on onclick event of combobox that trigger cancel event of model popup
Remember to click Mark as Answer on the post that helps to others.
Member
1 Points
47 Posts
Re: Model popup extender closing automatically
Oct 08, 2013 03:30 AM|Balajikasiraj|LINK
<cc1:ModalPopupExtender ID="modelPopupControlExtender1" runat="server" TargetControlID="lbldummy"
PopupControlID="pnladdteam" DropShadow="false" PopupDragHandleControlID="teamgrid"
BackgroundCssClass="modalBackground" CancelControlID="lbldummycancel" RepositionMode="RepositionOnWindowResize">
</cc1:ModalPopupExtender>
<td align="center" class="auto-style12">
<asp:ListBox ID="lstAvailableResrc" runat="server" Height="100%" Width="75%" SelectionMode="Multiple" AutoPostBack="true"
ToolTip="Available Resources" OnSelectedIndexChanged="lstAvailableResrc_SelectedIndexChanged"></asp:ListBox>
</td>
<asp:Panel runat ="server" ID="pnlprojdetails" Visible ="false" ClientIDMode ="Static" >
<div style="border-radius: 3px; background: #EEE; box-shadow:inset 0px 1px 3px #777; padding: 10px;">
<table align="center" style="width: 100%; margin-left: 0px;">
<tr>
<tr>
<td class="auto-style2" style="text-align:left;">
<label>
<strong>Project Start Date:</strong></label></td>
<td class="auto-style3" style="text-align:left;">
<asp:Label ID="projstartdate" runat="server">Nil</asp:Label>
</td>
</tr>
<tr>
<td class="auto-style1" style="text-align:left;">
<label>
<strong>Project End Date:</strong></label></td>
<td class="auto-style18" style="text-align:left;">
<asp:Label ID="projenddate" runat="server">Nil</asp:Label>
</td>
</tr>
</table>
</div>
</asp:Panel>
<br />
<asp:Label ID="lblpopupalert" runat="server" ClientIDMode ="Static" ></asp:Label>
<br />
</div>
</div>
</asp:Panel>
Participant
1570 Points
495 Posts
Re: Model popup extender closing automatically
Oct 08, 2013 03:42 AM|sumitjain231|LINK
your listbox is the cause of the issue. even in the disable state it do postback due to issue in high level javascript.
you can place debug point to your selection index change event and verify it.
the immediate solution is call the show method of the model popup in selectionindex change event. that will resolve the issue.
Remember to click Mark as Answer on the post that helps to others.
Member
1 Points
47 Posts
Re: Model popup extender closing automatically
Oct 08, 2013 03:52 AM|Balajikasiraj|LINK
comba list name selection it shows details from database. name contionously change popup closed .
how solve this problem