This question is locked. New answers and comments are not allowed.
I’m missing something I’m sure is simple – help please?
I have a RadDropDownButton that contains a TreeView. It’s pretty straightforward, I just want them to select one value, no checkboxes or anything like that. I cannot seem to figure out the syntax to get the selected item from the TreeView.
Here is the XAML code that creates the user control:
<telerik:RadDropDownButton Content="Click to Select Charts" Click="RadDropDownButton_Click"> <telerik:RadDropDownButton.Background> <LinearGradientBrush> <GradientStop Color="#FFE6FFFF" Offset="0.028999984264373779" /> <GradientStop Color="#FFBDEBEF" Offset="1" /> </LinearGradientBrush> </telerik:RadDropDownButton.Background> <telerik:RadDropDownButton.DropDownContent> <telerik:RadTreeView IsOptionElementsEnabled="False" IsTriStateMode="False" x:Name="tvStudentCharts" > <telerik:RadTreeViewItem x:Name="tviStudentChart" Header="Available Charts" IsExpanded="True" ItemsSource="{Binding StudentChartsCategories}" ItemTemplate="{StaticResource StudentChartsCategoryTreeViewTemplate}"> </telerik:RadTreeViewItem> </telerik:RadTreeView> </telerik:RadDropDownButton.DropDownContent> </telerik:RadDropDownButton> This is included on another page:
<local:ctrlCdbStudentChartSelection x:Name="Zone1Selection" Margin="6,25,6,2" Width="200" Height="30" HorizontalAlignment="Left" Visibility="Collapsed"/> I can see the value I want, but can’t seem to access it. I’ve tried syntax like Zone1Selection.tvStudentCharts.SelectedValues, but that doesn’t get to the URL value I want. What am I missing?
Attached is the watch showing what I’m trying to get to.
Thanks!