DropDown popup width (Telerik: Kendo UI for Angular)


Macla

How can I set the DropDown popup width to auto so all text is visible? I want to keep a smaller width for the widget but a larger width for the popup.

enter image description here

renew:

Link to Plunkr .

import { Component } from '@angular/core';

@Component({
  selector: 'my-app',
  styles: ['kendo-dropdownlist { width: 6em;}'],
  template: `
    <kendo-dropdownlist
        [data]="listItems"
        [textField]="'text'"
        [valueField]="'value'"
        [value]="selectedValue"
    >
        <ng-template kendoDropDownListValueTemplate let-dataItem>
            <span>{{ dataItem?.value }}</span>&nbsp;{{ dataItem?.text }}
        </ng-template>
        <ng-template kendoDropDownListItemTemplate let-dataItem>
            <span>{{ dataItem.value }}</span> {{ dataItem.text }} - Dummy text
        </ng-template>
    </kendo-dropdownlist>
  `
})
export class AppComponent {
    public listItems: Array<{ text: string, value: number }> = [
        { text: "Small", value: 1 },
        { text: "Medium", value: 2 },
        { text: "Large", value: 3 }
    ];

    public selectedValue: { text: string, value: number } = { text: "Foo", value: 1 };
}
George K

I recommend that you set the width of the popup to . Therefore, these items will not wrap:auto

<kendo-dropdownlist
    [data]="listItems"
    [textField]="'text'"
    [valueField]="'value'"
    [value]="selectedValue"
    [popupSettings]="{ width: 'auto' }"
>

http://plnkr.co/edit/dqlInPutekCnwdt7KFek?p=preview

Related


DropDown popup width (Telerik: Kendo UI for Angular)

Macla How can I set the DropDown popup width to auto so all text is visible? I want to keep a smaller width for the widget but a larger width for the popup. renew: Link to Plunkr . import { Component } from '@angular/core'; @Component({ selector: 'my-app',

DropDown popup width (Telerik: Kendo UI for Angular)

Macla How can I set the DropDown popup width to auto so all text is visible? I want to keep a smaller width for the widget but a larger width for the popup. renew: Link to Plunkr . import { Component } from '@angular/core'; @Component({ selector: 'my-app',

DropDown popup width (Telerik: Kendo UI for Angular)

Macla How can I set the DropDown popup width to auto so all text is visible? I want to keep a smaller width for the widget but a larger width for the popup. renew: Link to Plunkr . import { Component } from '@angular/core'; @Component({ selector: 'my-app',

DropDown popup width (Telerik: Kendo UI for Angular)

Macla How can I set the DropDown popup width to auto so all text is visible? I want to keep a smaller width for the widget but a larger width for the popup. renew: Link to Plunkr . import { Component } from '@angular/core'; @Component({ selector: 'my-app',

Kendo UI TreeList popup dropdown

Shane van Wyk I have implemented TreeListas per bellow . @(Html.Kendo().TreeList<Example.UI.ViewModel.Item>() .Name("ExampleItems") .Toolbar(toolbar => toolbar.Create()) .Columns(columns => { columns.Add().Field(p => p.Name); c

Kendo UI TreeList popup dropdown

Shane van Wyk I have implemented TreeListas per bellow . @(Html.Kendo().TreeList<Example.UI.ViewModel.Item>() .Name("ExampleItems") .Toolbar(toolbar => toolbar.Create()) .Columns(columns => { columns.Add().Field(p => p.Name); c

Kendo UI grid dropdown and angular

Dalton 5 I try to set custom dropdown menu in Kendo UI. I have mentioned my problem. http://dojo.telerik.com/aFIZa/13 My problem is that I don't know how to set the selected text in the template property? I want to display the text field but save the ID as a v

Kendo UI grid dropdown and angular

Dalton 5 I try to set custom dropdown menu in Kendo UI. I have mentioned my problem. http://dojo.telerik.com/aFIZa/13 My problem is that I don't know how to set the selected text in the template property? I want to display the text field but save the ID as a v

Set width of Angular UI dropdown

ps0604 In this sprite, I have an Angular UI dropdown with a select list's max height. This works fine and the user can scroll the list. I also set a max-width because the list is too wide, but that doesn't work. Any idea how to fix it? HTML <div class="btn-g

Set width of Angular UI dropdown

ps0604 In this sprite, I have an Angular UI dropdown with a select list's max height. This works fine and the user can scroll the list. I also set a max-width because the list is too wide, but that doesn't work. Any idea how to fix it? HTML <div class="btn-g

Set width of Angular UI dropdown

ps0604 In this sprite, I have an Angular UI dropdown with a select list's max height. This works fine and the user can scroll the list. I also set a max-width because the list is too wide, but that doesn't work. Any idea how to fix it? HTML <div class="btn-g

Set width of Angular UI dropdown

ps0604 In this sprite, I have an Angular UI dropdown with a select list's max height. This works fine and the user can scroll the list. I also set a max-width because the list is too wide, but that doesn't work. Any idea how to fix it? HTML <div class="btn-g

Set width of Angular UI dropdown

ps0604 In this sprite, I have an Angular UI dropdown with a select list's max height. This works fine and the user can scroll the list. I also set a max-width because the list is too wide, but that doesn't work. Any idea how to fix it? HTML <div class="btn-g

Set width of Angular UI dropdown

ps0604 In this sprite, I have an Angular UI dropdown with a select list's max height. This works fine and the user can scroll the list. I also set a max-width because the list is too wide, but that doesn't work. Any idea how to fix it? HTML <div class="btn-g

Set width of Angular UI dropdown

ps0604 In this sprite, I have an Angular UI dropdown with a select list's max height. This works fine and the user can scroll the list. I also set a max-width because the list is too wide, but that doesn't work. Any idea how to fix it? HTML <div class="btn-g

Set width of Angular UI dropdown

ps0604 In this sprite, I have an Angular UI dropdown with a select list's max height. This works fine and the user can scroll the list. I also set a max-width because the list is too wide, but that doesn't work. Any idea how to fix it? HTML <div class="btn-g

Set width of Angular UI dropdown

ps0604 In this sprite, I have an Angular UI dropdown with a select list's max height. This works fine and the user can scroll the list. I also set a max-width because the list is too wide, but that doesn't work. Any idea how to fix it? HTML <div class="btn-g

Set width of Angular UI dropdown

ps0604 In this sprite, I have an Angular UI dropdown with a select list's max height. This works fine and the user can scroll the list. I also set a max-width because the list is too wide, but that doesn't work. Any idea how to fix it? HTML <div class="btn-g

Telerik Kendo UI with MVVM

username I have a Kendo UI grid (MVVM concept) in my view page. Bind data from the view model. When I reduce the page size. Kendo UI grid changed to Kendo UI Listview. See this picture: How can I do this? onabai Define a single data source for Grid and ListVie

Telerik Kendo UI with MVVM

username I have a Kendo UI grid (MVVM concept) in my view page. Bind data from the view model. When I reduce the page size. Kendo UI grid changed to Kendo UI Listview. See this picture: How can I do this? onabai Define a single data source for Grid and ListVie

Error in Telerik Kendo UI

Hashar Sashawani This is my first application in Telerik Kendo UI. I write the code below. @(Html.Kendo().DatePicker().Name("MyBirthDay").Value(DateTime.Today)) I got this error Unable to copy file "c:\Program Files (x86)\Telerik\UI for ASP.NET MVC Q3 2013\wr

KENDO UI ANGULAR check style of POPUP element in CHROME

Pavel France Consider the situation when you have KENDO Angular UI components... (like a pure dropdown menu). When you click on the drop down menu it will show your menu. Now you want to check the style of this menu or the style of one of the many items in thi

KENDO UI ANGULAR check style of POPUP element in CHROME

Pavel France Consider the situation when you have KENDO Angular UI components... (like a pure dropdown menu). When you click on the drop down menu it will show your menu. Now you want to check the style of this menu or the style of one of the many items in thi

Kendo UI dropdown validation

Owais Ahmed <%= Html.Kendo().DropDownList() .Name("ScheduleNumber1") .DataTextField("ScheduleNumber") .DataValueField("ScheduleNumber") // .Filter("contains") .DataSource(source => { source.Read(read => { read.A

Kendo UI dropdown validation

Owais Ahmed <%= Html.Kendo().DropDownList() .Name("ScheduleNumber1") .DataTextField("ScheduleNumber") .DataValueField("ScheduleNumber") // .Filter("contains") .DataSource(source => { source.Read(read => { read.A

Kendo UI in Angular: How to define minimum width in grid

ps0604 In this Kendo UI for Angular grid, I use width: 100px. What I need now is to use min-widthinstead width. Is this possible? <kendo-grid [kendoGridBinding]="data" [resizable]="true" [sortable]="true" filterable="menu"> <kendo-gr

Unable to install Kendo UI Angular 2 dropdown control

The internet I can't install Kendo Ui dropdown for Angular 2. I have valid telerik credentials. Also inform that other controls like "kendo button" can also be easily installed: I use below npm install command. please help! **npm install --save @progress/kendo

Unable to install Kendo UI Angular 2 dropdown control

The internet I can't install Kendo Ui dropdown for Angular 2. I have valid telerik credentials. Also inform that other controls like "kendo button" can also be easily installed: I use below npm install command. please help! **npm install --save @progress/kendo

Unable to install Kendo UI Angular 2 dropdown control

The internet I can't install Kendo Ui dropdown for Angular 2. I have valid telerik credentials. Also inform that other controls like "kendo button" can also be easily installed: I use below npm install command. please help! **npm install --save @progress/kendo