Reputation: 393
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 }
];
Upvotes: 4
Views: 9728
Reputation: 1
.k-picker-solid {
background-color: white;
background-image: none;
}
Upvotes: 0
Reputation: 10541
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
Upvotes: 6