[Solved] - Can i autofit dropdown item?

Hi,
Can I change the dropdownview width with a given number?
Thanks you!



3 Replies

DV Duraimurugan Vedagiri Syncfusion Team May 13, 2020 02:12 PM UTC

Hi GridLock,

Query : Can I change the dropdownview width with a given number?

Yes, with help of below code snippet, you can change the SfComboBox dropdown width.

Code Snippet
sfComboBox1.DropDownControl.PopupHost.Width = 100; 

Please let us know if you need any further assistance

Regards,
Durai


TG The GridLock May 13, 2020 03:07 PM UTC

Thanks Durai, this is what i need.


DV Duraimurugan Vedagiri Syncfusion Team May 14, 2020 09:46 AM UTC

Hi GridLock,

Thanks for your update.

Please get back to us if you need any other assistance.

Regards,
Durai

Loader.
Up arrow icon