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

DropDownColumns In Edit Mode List is to big

1 Answer 36 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jamie Webb
Top achievements
Rank 1
Jamie Webb asked on 08 Sep 2011, 05:20 PM
Hi,

I'm sure this is something simple. I have DropDownColumn that I'm populating at runtime with two values. When I edit the row the dropdown shows the two values but also has a mass of white space after.

Is there away of reducing the size of the drop down list.

I have attached a screen shot as I don't think its very clear

Note: The Edit form is the standard Telerik Auto Generated Form instead of a Custom Form.

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 13 Sep 2011, 01:40 PM
Hello Jamie,

 You can use the DropDownCssClass property of the combobox to set any style to the dropdown area including height and width. You can set this property in code-behind in the same place where you populate the combo:

RadComboBox combo = (e.Item as GridEditFormItem)["DropDownColumn"].Controls[0] as RadComboBox;
combo.DropDownCssClass = "ddlHeight";

and the css class:
.ddlHeight
{
     height:50px;
}


Greetings,
Marin
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Jamie Webb
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or