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 }
];
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With