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

PanelItem Hidden When Another One is Set VIsible=false

2 Answers 68 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Andrey
Top achievements
Rank 1
Andrey asked on 12 Jun 2012, 06:00 PM
I have run into, what appears to be, a bug in RadPanelBar. The problem is as follows.

I have the following layout:
->Parent 1
-> Child 1
-> Grandchild 1
-> Grandchild 2
-> Child 2
-> Grandchild 1
-> Grandchild 2

I set "Child 2 -> Grandchild 2" to invisible (VIsible = false) on every post back. Everything works fine, until I click on "Child 2 -> Grandchild 1" or "Child 2 -> Grandchild 2". 
. After I click on that link, "Child 1 -> Grandchild 2" also becomes hidden.

To reproduce the problem, launch the application (1), Expand "Child 2" and click on "Grandchild 1". Now expand "Child 1" (2). "Grandchild 2" under "Child 1" is invisible now, even though it should be visible.

(1)
->Parent 1
-> Child 1
-> Grandchild 1
-> Grandchild 2
-> Child 2
-> Grandchild 1   <- CLICK
(2)
->Parent 1
-> Child 1
-> Grandchild 1
-> Child 2
-> Grandchild 1 


Site.Master.cs:
http://pastebin.com/NLFVY6C6 
SIte.Master
http://pastebin.com/1jYD7Uz9 
Default.aspx.cs
http://pastebin.com/TPtBu35n 
Default.aspx
http://pastebin.com/4tqATYyi
Web.config
http://pastebin.com/fKKZwbkD 

Thank you for any help,
Andrey

2 Answers, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 05 Jul 2012, 01:26 PM
Hello Andrey,

I tested the issue that you get and I could replicate it when the ExpandMode property of the RadPanelBar is set to FullExpandedItem and in some cases the height of the child items is not calculated correctly. Thus, it seems that the child items is set to visible=false as well. However, when using the ExpandMode="MultipleExpandedItems" the height of the items gets calculated correctly and the issue no longer persist (see the attached video here). 

Greetings,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Andrey
Top achievements
Rank 1
answered on 05 Jul 2012, 07:36 PM
Yeah, I ended up using the SingleExpandedItem mode. It seems to function properly. I would still prefer the other mode, though. Hopefully this issue is fixed soon.

Thank you for looking into this,
Andrey
Tags
PanelBar
Asked by
Andrey
Top achievements
Rank 1
Answers by
Kate
Telerik team
Andrey
Top achievements
Rank 1
Share this question
or