This is a migrated thread and some comments may be shown as answers.

Change width of Kendo DropDownList dynamicly

1 Answer 502 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Daochuen
Top achievements
Rank 1
Iron
Veteran
Iron
Daochuen asked on 08 Nov 2017, 04:58 PM
Hello,
 Is anyone know the way to change width of Kendo DropDownList dynamically by JavaScript (without use bootstrap.css)
Thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Neli
Telerik team
answered on 09 Nov 2017, 03:33 PM
Hello,

In order to change the width of a DropDownList, you could use the following selector and apply the needed style.
$('.k-widget.k-dropdown').css('width', '500px');

Here you may find a Dojo example, where the width of a DropDownList is changed on a button click.

Please contact us, in case you need further assistance.

Regards,
Neli
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
DropDownList
Asked by
Daochuen
Top achievements
Rank 1
Iron
Veteran
Iron
Answers by
Neli
Telerik team
Share this question
or