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

Problem with PanelBar in a RadPane

3 Answers 44 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
TLDesigner
Top achievements
Rank 1
TLDesigner asked on 02 Sep 2011, 10:23 AM
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.

3 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 06 Sep 2011, 01:56 PM
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 >>

0
TLDesigner
Top achievements
Rank 1
answered on 06 Sep 2011, 02:19 PM
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.

0
Accepted
Konstantina
Telerik team
answered on 07 Sep 2011, 01:30 PM
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 >>

Tags
PanelBar
Asked by
TLDesigner
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
TLDesigner
Top achievements
Rank 1
Share this question
or