One of the pages that I have uses a Rad Color Picker inside of a modal popup. When we upgraded our project to Q1 2009 of the ASP .NET AJAX suite, I noticed this page suddenly exhibited odd behavior.
When the modal popup appeared with the color picker on it, the color picker UI was completely messed up. All the color rendered in one column down the page, the text boxes were on either side of the column along with the 'no color' button.
I finally realized that if I removed the 'display:none' attribute from the Panel being targetted by the Modal Popup Extender in the AJAX toolkit, the problem went away.
Here is the code I used to display the issue:
The panel I refer to is "pnlModal". The code above should display the odd behavior I described above. But, once you remove the 'display:none' attribute from the style tag of "pnlModal" the problem is resolved.
Any reason this should occur changing from the Q4 2008 release to the Q1 2009 release?
When the modal popup appeared with the color picker on it, the color picker UI was completely messed up. All the color rendered in one column down the page, the text boxes were on either side of the column along with the 'no color' button.
I finally realized that if I removed the 'display:none' attribute from the Panel being targetted by the Modal Popup Extender in the AJAX toolkit, the problem went away.
Here is the code I used to display the issue:
<asp:Button ID="btnShowModal" runat="server" Text="Show Modal Popup" /> |
<asp:Panel ID="pnlModal" runat="server" CssClass="modalpopup" style="width:450px;display:none;"> |
<div style="margin-top:5px;"> |
<telerik:RadColorPicker ID="RadColorPicker1" runat="server" style="margin-left:5px;"></telerik:RadColorPicker> |
</div> |
</asp:Panel> |
<ajaxToolkit:ModalPopupExtender ID="ModalPopup1" runat="server" TargetControlID="btnShowModal" PopupControlID="pnlModal" |
X="200" Y="250"></ajaxToolkit:ModalPopupExtender> |
The panel I refer to is "pnlModal". The code above should display the odd behavior I described above. But, once you remove the 'display:none' attribute from the style tag of "pnlModal" the problem is resolved.
Any reason this should occur changing from the Q4 2008 release to the Q1 2009 release?