I am having a little problem trying to get the selected value from the RadListPicker control.
How do I get the value from a select dropdown item, that is get the Content value “One”, “Two” etc…?
<telerik:RadListPicker Height="49" Margin="0,5,5,0" InlineModeThreshold="6" SelectedIndex="0" Width="292" HorizontalAlignment="Left" Background="#BF15BED4" Name="rlpBottleSize">
<telerik:RadListPickerItem Content="One" Background="#BF15BED4" ></telerik:RadListPickerItem>
<telerik:RadListPickerItem Content="two" Background="#BF15BED4</telerik:RadListPickerItem>
<telerik:RadListPickerItem Content="three" Background="#BF15BED4"></telerik:RadListPickerItem>
</telerik:RadListPicker>
I was thinking that in the C# code you could do something like this:
string s = this.rlpBottleSize.SelectedVisualItem.ToString();
Or
string s = ((ListBoxItem)this.rlpBottleSize.SelectedItem).Content.ToString();
But these do not work to get the value.
