Fixed drop down width, VirtualizingStackPanel

2 posts, 0 answers
  1. Edward
    Edward avatar
    84 posts
    Member since:
    Feb 2011

    Posted 26 Apr 2012 Link to this post

    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.
  2. Boyan
    Boyan avatar
    758 posts

    Posted 01 May 2012 Link to this post

    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.

    the Telerik team

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

Back to Top