Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > PanelBar > Problem with PanelBar in a RadPane

Answered Problem with PanelBar in a RadPane

Feed from this thread
  • TLDesigner avatar

    Posted on Sep 2, 2011 (permalink)

    Hello,

    I have a panelbar inside of a Radpane. When I have my items (menu) on the PanelBar "expanded" and I pin or unpin the RadPane, I lost all my expanded items, and shows it all closed.

    Any solution?

    Thanks.
    Regards.

    Reply

  • Konstantina Konstantina admin's avatar

    Posted on Sep 6, 2011 (permalink)

    Hi,

    I tried to reproduce the issue, but to no avail. Attached I am sending you a short video of my attempt. Could you please let me know if I am doing something wrong. Also, sending us a sample project in which we can observe the issue will be very helpful for tracking down the source of the problem.

    Looking forward to your reply.

    Greetings,
    Konstantina
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

    Attached files

    Reply

  • TLDesigner avatar

    Posted on Sep 6, 2011 (permalink)

    Hi Konstantina,

    My first post wasn't defined good, I forgot to say we use radoutlookbar too (my fault).

    An example of our 'tree' is:

    <Grid >
            <tk:RadDocking>
                <tk:RadSplitContainer>
                    <tk:RadPaneGroup>
                        <tk:RadPane Header="Test">
                            <tk:RadOutlookBar>
                                <tk:RadOutlookBarItem Header="Menu">
                                    <tk:RadPanelBar>
                                        <tk:RadPanelBarItem Header="TestPanelBarItem">
                                            <tk:RadPanelBarItem Header="SubTestPanelBarItem"/>
                                            <tk:RadPanelBarItem Header="SubTestPanelBarItem2"/>
                                            <tk:RadPanelBarItem Header="SubTestPanelBarItem3"/>
                                            <tk:RadPanelBarItem Header="SubTestPanelBarItem4"/>                                       
                                        </tk:RadPanelBarItem>
                                    </tk:RadPanelBar>
                                </tk:RadOutlookBarItem>                                                           
                            </tk:RadOutlookBar>
                        </tk:RadPane>
                    </tk:RadPaneGroup>
                </tk:RadSplitContainer>
            </tk:RadDocking>
     
        </Grid>

    There is a difference between our code because we need to create the second level of panelbaritems in our ViewModel, because we have access user level to see (or not) the options.

    Best regards,
    TLDesigner.

    Reply

  • Answer Konstantina Konstantina admin's avatar

    Posted on Sep 7, 2011 (permalink)

    Hello,

    Sorry, but when the state of the pane is changed, the Pane looses its DataContext. So, if you set the second level of items dynamically, this behavior is expected. This is how the Docking control is working.
    Sorry for the caused inconvenience.

    Best wishes,
    Konstantina
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > PanelBar > Problem with PanelBar in a RadPane
Related resources for "Problem with PanelBar in a RadPane"

WPF PanelBar Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]