Telerik
Skip Navigation LinksHome / Community / Forums / ASP.NET > Panelbar > Collapse 1st Child rows when selecting a different Parent.

Answered Collapse 1st Child rows when selecting a different Parent.

Feed from this thread
  • Posted on Jun 19, 2009 (permalink)

    Hey everyone, I'm trying to find a way to code my panelbar to collapse the 3rd child rows when a different 2nd child row is selected from a different parent. My panel bar contains 3 levels as shown below. As you can see below, the parent rows and its child rows are always shown. Yet when I click on a different parent's child, I want the other parent's child's children to close. Setting the panel bar's expandMode to "SingleExpandedItem" gets close to this functionality except for when i click on a different parent's child, all the other parents close right up along with it, where as i would like the childs to close up and leave the parent rows open. I hope this is enough and isn't too confusing. Thanks in advanced for any help, Kyle.

    BEFORE
    ParentA -
        Child1.1+
        Child1.2+
        Child1.3-
            -Child2.1
            -Child2.2
            -Child2.3
    ParentB -
        Child1.4+
        Child1.5+
    ParentC -
        Child1.6+

    AFTER
    ParentA -
        Child1.1+
        Child1.2+
        Child1.3+
    ParentB -
        Child1.4+
        Child1.5+
    ParentC -
        Child1.6-
            -Child2.4

    ANOTHER AFTER
    ParentA -
        Child1.1+
        Child1.2-
            -Child2.5
            -Child2.6
        Child1.3+
    ParentB -
        Child1.4+
        Child1.5+
    ParentC -
        Child1.6+

        

    Reply

  • Answer Telerik Admin admin's avatar

    Posted on Jun 23, 2009 (permalink)

    Hi Kyle,

    Please find attached a simple page demonstrating the needed approach. Download it and give it a try.

    Kind regards,
    Yana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
    Attached files

    Reply

Back to Top

Skip Navigation LinksHome / Community / Forums / ASP.NET > Panelbar > Collapse 1st Child rows when selecting a different Parent.

Powered by Sitefinity ASP.NET CMS

Contact Us | Site Feedback | Terms of Use | Privacy Policy
Copyright © 2002-2010 Telerik. All rights reserved.