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

Expand on server side in master page

2 Answers 71 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Web Services
Top achievements
Rank 2
Web Services asked on 18 Aug 2009, 07:26 PM
I need to expand a rad panel bar that is in a master page based on what page is loaded. I have this in my page load method but I get a null reference error. I'm guessing it's because the panelbar is in the master page. How do I access my panelbar in child page and expand one of the items of my choice. Here is the code I am trying
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        Dim panel As RadPanelBar = Master.FindControl("RadPanelBar1")
        Dim item As RadPanelItem = panel.Items.FindItemByText("Entities")
        item.Expanded = True

    End Sub

2 Answers, 1 is accepted

Sort by
0
Accepted
Paul
Telerik team
answered on 21 Aug 2009, 01:45 PM
Hi Web Services,

Please refer to our PanelBar / Programmatic State Persistence example for details on how to achieve your goal.

Best wishes,
Paul
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.
0
Web Services
Top achievements
Rank 2
answered on 21 Aug 2009, 04:55 PM
That's what I needed thanks.
Tags
PanelBar
Asked by
Web Services
Top achievements
Rank 2
Answers by
Paul
Telerik team
Web Services
Top achievements
Rank 2
Share this question
or