Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change the default background color of kendo dropdownlist angular 6

I would like to change the default color(grey) in the Kendo dropdown list, could anyone help me how to do that?

app.html

<kendo-dropdownlist
    #list
    [data]="data"
    [filterable]="true"
    textField="text"
    valueField="value"
    (filterChange)="handleFilter($event)" 
    (selectionChange)="Change($event)"
    [valuePrimitive]="true"
    formControlName = selectSize
>
</kendo-dropdownlist>

app.component.ts

export class AppComponent {
@ViewChild("list") list;

public source: Array<{ text: string, value: number }> = [
    { text: "Small", value: 1 },
    { text: "Medium", value: 2 },
    { text: "Large", value: 3 }
];

Trying to change the grey color of dropdown list[1]

like image 215
MaryAnn Avatar asked Sep 15 '25 01:09

MaryAnn


1 Answers

To change the color of dropdownlist you need to override kendo dropdownlist classes like below

style.css

.k-dropdown-wrap>.k-input, .k-dropdown .k-dropdown-wrap .k-select, .k-list, .k-reset {
    background-color: lightblue;
}

Here is solution on stackblitz

like image 197
TheParam Avatar answered Sep 16 '25 19:09

TheParam