Change width of Kendo DropDownList dynamicly

2 posts, 1 answers
  1. Daochuen
    Daochuen avatar
    5 posts
    Member since:
    Sep 2017

    Posted 08 Nov 2017 Link to this post

    Hello,
     Is anyone know the way to change width of Kendo DropDownList dynamically by JavaScript (without use bootstrap.css)
    Thanks.
  2. Answer
    Neli
    Admin
    Neli avatar
    221 posts

    Posted 09 Nov 2017 Link to this post

    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.
Back to Top