We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Number of visible items in ComboBoxAdv WPF

Thread ID:





153490 Apr 20,2020 08:40 AM UTC Apr 21,2020 12:01 PM UTC WPF 2
Tags: ComboBoxAdv
Marcus johansson
Asked On April 20, 2020 08:40 AM UTC

How do I control the number of visible items in a ComboBoxAdv? For example, we have a multiselect combobox bound to an itemssource with 50 items. The user can only see FOUR items at a time (of course, the scrollbar can be used to see more). How can we increase this number from four to something higher?

Marcus johansson
Replied On April 21, 2020 07:08 AM UTC

It appears the problem only occurs when the number of items in the itemssource changes after the ComboBoxAdv component has been initialized. In our case, the itemssource is empty (has zero items) at initialization but later grows. In this case, the dropdown list only shows four items at a time.

Duraimurugan Vedagiri [Syncfusion]
Replied On April 21, 2020 12:01 PM UTC

Hi Marcus,

Thanks for using syncfusion products.

Currently ComboBoxAdv doesn’t have direct support to achieve the reported requirement "How define number of visible items in a ComboBoxAdv
dropdown". Instead we suggest the work around solution to meet your requirement that you can customize a ComboBoxAdv.ItemTemplate and define TextBlock height corresponding to the dropdown height.

Code Snippet 
    <syncfusion:ComboBoxAdv x:Name="comboBoxAdv1" DefaultText="..Choose Items.." ItemsSource="{Binding StudentList}" Height="50" Width="300" MaxDropDownHeight="{Binding DropDownHeight}"> 
                <TextBlock Text="{Binding Name}" Height="{Binding ItemHeight}"/> 

Here is the sample that works as expected.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon