I have a RadPanelBar that I am using that has dynamic heights for the childheightproperty.
Seems to be an issue related to IE8 compatibility mode?
When I load the panelbar, all panels are collapsed. When I expand any of the panels (except the bottom one), I am seeing a "ghost" of the panel BELOW the one I open remaining in the spot where it was before I expanded the panel above it. In this case, the panel has a background image applied via CSS.
As a result, I have to "click" on this ghost, in order to see the content of the panel I just opened.
HELP
My code:
foreach (XmlNode Panel in Panels)
{
string PanelName = Panel.SelectSingleNode("PanelText").InnerText;
string PanelImage = Panel.SelectSingleNode("PanelImage").InnerXml;
string PanelContent = Panel.SelectSingleNode("PanelContentText").InnerText;
int PanelContentHeight = 0;
Telerik.Web.UI.RadPanelItem item = new Telerik.Web.UI.RadPanelItem(PanelName, "");
Telerik.Web.UI.RadPanelItem childPanelItem = new Telerik.Web.UI.RadPanelItem("", "");
item.ChildGroupHeight = 200;
string strInnerHtml = string.Empty;
strInnerHtml += "<div>" + PanelContent + "</div><br />";
if (PanelImage != null)
{
strInnerHtml += "<div align='center'>" + PanelImage + "</div>";
}
PanelItemTemplate template = new PanelItemTemplate(strInnerHtml);
childPanelItem.ItemTemplate = template;
try
{
PanelContentHeight = Convert.ToInt32(Panel.SelectSingleNode("PanelContentHeight").InnerText);
item.ChildGroupHeight = PanelContentHeight;
}
catch
{
item.ChildGroupHeight = 200;
}
item.Items.Add(childPanelItem);
item.Expanded = false;
this.RadPanelBar1.Items.Add(item);
}
Seems to be an issue related to IE8 compatibility mode?
When I load the panelbar, all panels are collapsed. When I expand any of the panels (except the bottom one), I am seeing a "ghost" of the panel BELOW the one I open remaining in the spot where it was before I expanded the panel above it. In this case, the panel has a background image applied via CSS.
As a result, I have to "click" on this ghost, in order to see the content of the panel I just opened.
HELP
My code:
foreach (XmlNode Panel in Panels)
{
string PanelName = Panel.SelectSingleNode("PanelText").InnerText;
string PanelImage = Panel.SelectSingleNode("PanelImage").InnerXml;
string PanelContent = Panel.SelectSingleNode("PanelContentText").InnerText;
int PanelContentHeight = 0;
Telerik.Web.UI.RadPanelItem item = new Telerik.Web.UI.RadPanelItem(PanelName, "");
Telerik.Web.UI.RadPanelItem childPanelItem = new Telerik.Web.UI.RadPanelItem("", "");
item.ChildGroupHeight = 200;
string strInnerHtml = string.Empty;
strInnerHtml += "<div>" + PanelContent + "</div><br />";
if (PanelImage != null)
{
strInnerHtml += "<div align='center'>" + PanelImage + "</div>";
}
PanelItemTemplate template = new PanelItemTemplate(strInnerHtml);
childPanelItem.ItemTemplate = template;
try
{
PanelContentHeight = Convert.ToInt32(Panel.SelectSingleNode("PanelContentHeight").InnerText);
item.ChildGroupHeight = PanelContentHeight;
}
catch
{
item.ChildGroupHeight = 200;
}
item.Items.Add(childPanelItem);
item.Expanded = false;
this.RadPanelBar1.Items.Add(item);
}