I am using a Kendo UI kendoComboBox that fetches remote data using a DataSource. Sometimes the values fetched are too large to fit in the kendoComboBox, so is it possible to adjust/autofit the width of the kendoComboBox after the data has been loaded ?
Thanks.
1 Answer, 1 is accepted
0
Dimiter Topalov
Telerik team
answered on 23 Mar 2016, 12:53 PM
Hi Nadeem,
You can access the list field of the Kendo UI ComboBox after the widget has been initialized, and set its width to "auto":
var combobox = $("#combobox").data("kendoComboBox");
combobox.list.width("auto");
You can also check this how-to, demonstrating this approach with a DropDownList.
Regards,
Dimiter Topalov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!