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

Fixed drop down width, VirtualizingStackPanel

1 Answer 121 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Edward
Top achievements
Rank 1
Edward asked on 26 Apr 2012, 04:34 PM
I switched to use VirtualizingStackPanel for performance issue.  Now I am having problem the drop down width will change if there are some item with long text.

I read from somewhere that you can use ItemTemplate to force the maximum width (and trim the text if possible).  However if I set ItemTemplate then I cannot use DisplayMemberPath, and I have 100s of combobox already in place.  It would be nice if I can change the style just once and have it affect all combobox.

1 Answer, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 01 May 2012, 02:10 PM
Hello Edward,

You can set a fixed Width to the VirtualizingStackPanel so it will align with the Width of the RadComboBox. This should be easy to implement on all your RadComboBoxes.

Regards,
Boyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
ComboBox
Asked by
Edward
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Share this question
or