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

Mapping to lookup value

1 Answer 66 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
jay
Top achievements
Rank 1
jay asked on 30 Oct 2010, 05:38 PM
I have a radcombo box in a grid and it works as expected. Now i want to convert it to a label or read-only textbox so i will only be able to see the the selectedvalue. Is there a converter i can use to map to the lookup value in the XAML? Or is there a way of giving a combobox the look and feel of a label/text box ?

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 04 Nov 2010, 10:25 AM
Hi Jay,

Please use the following code snippet to achieve the needed look of RadComboBox:

<UserControl.Resources>
    <Style TargetType="telerik:RadToggleButton">
        <Setter Property="Visibility" Value="Collapsed" />
    </Style>
</UserControl.Resources>
<StackPanel Name="LayoutRoot" Background="White" >
    <telerik:RadComboBox Width="150" IsEditable="True" IsReadOnly="True" SelectedIndex="0">
        <telerik:RadComboBoxItem Content="Item1" />
        <telerik:RadComboBoxItem Content="Item2" />
        <telerik:RadComboBoxItem Content="Item3" />
    </telerik:RadComboBox>
</StackPanel>


Greetings,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ComboBox
Asked by
jay
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or