This is my XAML Code
<radDock:RadPane x:Name="pnlBarAccounting" Header="Accounting">
<telerikNavigation:RadPanelBar x:Name="pnlBar">
<telerikNavigation:RadPanelBar.ItemTemplate>
<core:HierarchicalDataTemplate ItemsSource="{Binding SubCategories}" >
<StackPanel Orientation="Horizontal">
<Image Source="{Binding Images}" Margin="2" />
<TextBlock x:Name="txtAccName" Text="{Binding Name}" VerticalAlignment="Center" MouseEnter="TextBlock_MouseEnter"></TextBlock>
<TextBlock x:Name="txtAccCustomUrl" Text="{Binding CustomUrl}" VerticalAlignment="Center" Visibility="Collapsed"></TextBlock>
</StackPanel>
</core:HierarchicalDataTemplate>
</telerikNavigation:RadPanelBar.ItemTemplate>
</telerikNavigation:RadPanelBar>
</radDock:RadPane>
And this is my XML content
<PanelItem ID="ChartofAccounts" Image="/book_24.gif" Text="PanelItem1" CustomUrl="../ CustomUrl.aspx"/>
I bound the XML file to RadPanelBar using HierarchicalDataTemplate.(Reference from http://www.telerik.com/community/forums/silverlight/panelbar/hierarchical-databinding.aspx) It is showing correct records.
Now my problem is…
1. I want to get value of CustomeURL of selected RadPanleBarItem in code behind.i.e. When I click on PanelItem1 it would return “CustomUrl.aspx”
2. I want to do same thing with RadtreeView control.
3. And if I Wrap this silverLightControl in any aspx page using <asp:Silverlight ID="Xaml1" runat="server" Source="SilverLightApp.xap" /> Then how can I paas this Url into ASPX page.
Please give me any solution ASAP.
Thanks