Change the dropdown size of a sfcombobox

Hi,


I can't change the dropdown size of the sfCombobox when is configured to "dropdownlist".

In the run time if I manually change the size it sticks.

I attach one image with the problem.

Thanks



Attachment: example_Combobox_4041fd3.zip

6 Replies

EM Elakkiya Muthukumarasamy Syncfusion Team October 14, 2021 12:56 PM UTC

Hi Jose, 
 
Greetings from Syncfusion. 
 
We have checked your reported query and we would like to let you know that we can change the size of the DropDown by setting the Maximum dropDown items and increase the ItemHeight in runtime. 

Solution1:Need to increase the item height 

We can able to change the size of DropDown by increasing  the ItemHeight in runtime. 

Code snippet: 

 


Before setting item height 

 

After setting item height 

 

Solution 2:Need to set Maximum dropDown items 
 
 we can able to change the size of DropDown by setting the Maximum dropDown items in sample level. Please refer the below documentation link. 


Please try it with the above solution and let us know if you need any further assistance on this. 
 
Regards, 
Elakkiya 



JM Jose Manuel October 14, 2021 01:32 PM UTC

Hi,

I'm new with Syncfusion components... This is being hard...

My sfCombobox have a datasource that is a datatable , and the "sfComboBox1.DropDownListView.ItemHeight" doesn't work for me.


I succeed with the     " .AllowDropDownResize = False"

 :)


Thanks for the help.



EM Elakkiya Muthukumarasamy Syncfusion Team October 15, 2021 09:23 AM UTC

Hi Jose, 
 
Thanks for confirming that the reported issue resolved at your end.  Please let us know if you need any further assistance on this. As always, we will be happy to assist you. 
 
Regards, 
Elakkiya 



SZ SZL February 2, 2023 06:46 AM UTC

Hello,

I try increase the dropdown width to custom value, but nothings changes at runtime.



            ffCombo.DropDownListView.Width = 700;

            ffCombo.DropDownListView.MinimumSize = new(700, 500);

            ffCombo.DropDownListView.ItemWidth = 700;


Can you help me please how can I do this?


Thank you very much!



GT Gokul Thanudhas Syncfusion Team February 3, 2023 02:44 PM UTC

We regret to inform you that currently, we don’t have support to change the dropdown width in SfComboBox .


We have analyzed your requirement for “Support to change the DropDownWidth in SfComboBox ”. We have already logged a feature request for the same. We will implement this feature in any of our upcoming releases. 


At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know when this feature is implemented. We appreciate your patience until then.   

  

Thank you for requesting this feature and helping us define it. We are always trying to make our products better and feature requests like yours are a key part of our product growth efforts.       

  

Feedback link: Need to provide DropDownWidth support in SfComboBox in WinForms | Feedback Portal (syncfusion.com)

  

If you have any more specification/suggestions to the feature request, you can add it as a comment in the portal and cast your vote to make it count.




SZ SZL replied to Gokul Thanudhas February 5, 2023 08:01 AM UTC

Thank you for the informations!


Loader.
Up arrow icon