This is a migrated thread and some comments may be shown as answers.

Panel bar expansion problem

8 Answers 137 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Chris Winters
Top achievements
Rank 1
Chris Winters asked on 17 Sep 2009, 05:20 PM
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);
            }

8 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 18 Sep 2009, 01:55 PM
Hi Chris,

I think it will be best if you can open a support ticket and send us a simple running project (incl. your custom skin, CSS, images, DB backup if needed and so on) demonstrating the problem (and step-by-step instructions on doing so). In that way we can reproduce and pinpoint the problems you're facing on our side, understand the logic of your application and provide a solution.

Regards,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Chris Winters
Top achievements
Rank 1
answered on 21 Sep 2009, 04:20 PM
unfortunately, thats not possible due to the "privacy" of the content.

I didnt write the application that uses this control, but I am stuck supporting it.

i cant find anything that references a "expand()" or "collapse" function in JS or CS code.

How is this handled?  is it handled on your side?

my source code simply has a "<a>" with href="#"  I cant find any references to even the AJAX libraries.


0
Chris Winters
Top achievements
Rank 1
answered on 21 Sep 2009, 06:14 PM
Hi Paul,

Please view the following test page:

http://www.sonos.com/clearform.aspx

in both IE 7 and IE8 - compatibility mode

When expanding the second item, you will see a ghost of the 3rd appear in the middle of the block -- also, the text appears wiped out of the panel below it.



0
Accepted
Paul
Telerik team
answered on 22 Sep 2009, 06:43 AM
Hi Chris,

Thanks for the provided URL.

I think you can easily fix this issue by adding relative positioning to the panelbar itself.

BTW, please mark your future tickets/forum posts for the exact version of the used control (your forum post is now marked for v2009.2.826, but you are actually using v2008.1.515).

Kind regards,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Chris Winters
Top achievements
Rank 1
answered on 22 Sep 2009, 01:04 PM
works like a charm!

thanks Paul
0
July
Top achievements
Rank 2
answered on 09 Sep 2011, 05:17 PM
 PanelItemTemplate is a Telerik Control?
I didn't find it!.

0
Cat Cheshire
Top achievements
Rank 1
answered on 12 Sep 2011, 10:20 AM
0
July
Top achievements
Rank 2
answered on 12 Sep 2011, 03:00 PM
Thanks Cat!
Tags
PanelBar
Asked by
Chris Winters
Top achievements
Rank 1
Answers by
Paul
Telerik team
Chris Winters
Top achievements
Rank 1
July
Top achievements
Rank 2
Cat Cheshire
Top achievements
Rank 1
Share this question
or