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

R3 2016 AutoWidth configuration option

3 Answers 41 Views
AutoComplete
This is a migrated thread and some comments may be shown as answers.
Robert Madrian
Top achievements
Rank 1
Veteran
Iron
Robert Madrian asked on 21 Nov 2016, 04:51 PM

Hi,

  • Where to find the new AutoWidth configuration Option?

robert

3 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 22 Nov 2016, 01:34 PM
Hello Robert,

You can use it in the declaration of the widget:

<input id="autocomplete" />
<script>
    $("#autocomplete").kendoAutoComplete({
        dataSource: [
          { name: "Apples" },
          { name: "Orangessssssssssssssssssssssssssssssssssssssssssssssss" }
        ],
        dataTextField: "name",
        autoWidth: true
    });
</script>

and the dropdown should have its with automatically set regarding the largest item in it:

http://www.screencast.com/t/ekpz9ehcod


Regards,
Nencho
Telerik by Progress
Telerik UI for ASP.NET MVC is ready for Visual Studio 2017 RC! Learn more.
0
Robert Madrian
Top achievements
Rank 1
Veteran
Iron
answered on 22 Nov 2016, 01:38 PM

I'm using the MVC Version!

robert

0
Nencho
Telerik team
answered on 24 Nov 2016, 12:40 PM
Hello Robert,

Indeed the option is not currently available in the Autocomplete for MVC. This is an omission which is already forwarded to our developer team and the option will be added as soon as possible.

It should be available with some of our upcoming internal builds.

Also, I have updated your telerik points for reporting for this issue.

Regards,
Nencho
Telerik by Progress
Telerik UI for ASP.NET MVC is ready for Visual Studio 2017 RC! Learn more.
Tags
AutoComplete
Asked by
Robert Madrian
Top achievements
Rank 1
Veteran
Iron
Answers by
Nencho
Telerik team
Robert Madrian
Top achievements
Rank 1
Veteran
Iron
Share this question
or