Hello,
in my project I have one container that can host several controls but only one is visible at a time.
If all the controls in the container are not visible a blank line persist. This only happens in IE.
It seems to me that the Panel added by the manager adds a blank line that the IE renders.
Best regards.
Here is an example illustrating the problem.
in my project I have one container that can host several controls but only one is visible at a time.
If all the controls in the container are not visible a blank line persist. This only happens in IE.
It seems to me that the Panel added by the manager adds a blank line that the IE renders.
Best regards.
Here is an example illustrating the problem.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> |
<%@ Register Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" TagPrefix="telerik" %> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head runat="server"> |
<title>Untitled Page</title> |
</head> |
<body> |
<script type="text/javascript"> |
function ResponseEnd() |
{ |
} |
</script> |
<form id="form1" runat="server"> |
<asp:ScriptManager ID="ScriptManager1" runat="server" /> |
<telerik:RadAjaxManager ID="RadAjaxManager" runat="server" ClientEvents-OnResponseEnd="ResponseEnd()" /> |
<div id="MasterDiv" style="height: 200px; width: 200px; border: solid 2px black;"> |
<div id="Div1" runat="server" visible="true" style="width: 200px; height: 200px; background-color: Gray;"> |
</div> |
<div id="Div2" runat="server" visible="false" style="width: 200px; height: 200px; background-color: Teal;"> |
</div> |
</div> |
<asp:Button ID="btn" OnClick="btn_OnClick" runat="server" Text="Toggle Panel" /> |
</form> |
</body> |
</html> |
using System; |
using System.Data; |
using System.Configuration; |
using System.Web; |
using System.Web.Security; |
using System.Web.UI; |
using System.Web.UI.WebControls; |
using System.Web.UI.WebControls.WebParts; |
using System.Web.UI.HtmlControls; |
public partial class _Default : System.Web.UI.Page |
{ |
protected void Page_Load(object sender, EventArgs e) |
{ |
RadAjaxManager.AjaxSettings.AddAjaxSetting(btn, Div1); |
RadAjaxManager.AjaxSettings.AddAjaxSetting(btn, Div2); |
} |
protected void btn_OnClick(Object sender, EventArgs e) |
{ |
if (Div2.Visible) |
{ |
Div2.Visible = false; |
Div1.Visible = true; |
} |
else |
{ |
Div1.Visible = false; |
Div2.Visible = true; |
} |
} |
} |