PanelItem Hidden When Another One is Set VIsible=false

3 posts, 0 answers
  1. Andrey
    Andrey avatar
    18 posts
    Member since:
    Jun 2012

    Posted 12 Jun 2012 Link to this post

    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. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 05 Jul 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Andrey
    Andrey avatar
    18 posts
    Member since:
    Jun 2012

    Posted 05 Jul 2012 Link to this post

    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
Back to Top