How to adjust ComboBox size to longest item?

2 posts, 0 answers
  1. meteorrr
    meteorrr avatar
    7 posts
    Member since:
    Mar 2008

    Posted 07 Apr 2010 Link to this post

    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.
  2. Valeri Hristov
    Valeri Hristov avatar
    2252 posts

    Posted 08 Apr 2010 Link to this post


    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.
  3. DevCraft banner
Back to Top