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

[Solved] GridViewComboBoxColumn DropDownHeight

2 Answers 138 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Josh
Top achievements
Rank 1
Josh asked on 10 Feb 2010, 04:58 AM
I can set a normal width and height but is there any way to set a "DropDown" height and width for a GridViewComboBoxColumn?

Thanks

2 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 11 Feb 2010, 04:33 PM
Hello Josh,

You can control the combobox trough the EditorStyle property of the column.
In the bellow sample code I have set the height of the dropdown to 10.

<Grid>
    <Grid.Resources>
        <Style TargetType="input:RadComboBox" x:Key="EditorStyle">
            <Setter Property="MaxDropDownHeight" Value="10" />
        </Style>
    </Grid.Resources>
    <telerik:RadGridView x:Name="RadGridView1" AutoGenerateColumns="False">
        <telerik:RadGridView.Columns>
            <telerik:GridViewComboBoxColumn DataMemberBinding="{Binding SelectedOption}" EditorStyle="{StaticResource EditorStyle}" />
        </telerik:RadGridView.Columns>
    </telerik:RadGridView>
</Grid>
Greetings,
Pavel Pavlov
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.
0
Josh
Top achievements
Rank 1
answered on 11 Feb 2010, 05:47 PM
Great, thanks a lot
Tags
GridView
Asked by
Josh
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Josh
Top achievements
Rank 1
Share this question
or