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

How to adjust ComboBox size to longest item?

1 Answer 36 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
meteorrr
Top achievements
Rank 1
meteorrr asked on 07 Apr 2010, 03:05 PM
Hi,
I have a combobox with dynamically bound itemsource (data item is custom type).
I would like to set this control's width to the width of the longest item.
Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 08 Apr 2010, 08:10 AM
Hi,

RadComboBox cannot adjust its size according its longest item because before the dropdown is opened for the first time, the items are not generated and cannot be measured.

Best wishes,
Valeri Hristov
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
meteorrr
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Share this question
or