Problem with PanelBar in a RadPane

4 posts, 1 answers
  1. TLDesigner
    TLDesigner avatar
    10 posts
    Member since:
    Aug 2011

    Posted 02 Sep 2011 Link to this post

    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.
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 06 Sep 2011 Link to this post

    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 >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. TLDesigner
    TLDesigner avatar
    10 posts
    Member since:
    Aug 2011

    Posted 06 Sep 2011 Link to this post

    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.

  5. Answer
    Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 07 Sep 2011 Link to this post

    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 >>

Back to Top