Hi there, I'm trying to change the background of toolbar in telerik grid, I know the key is to override the default css, but I couldn't make it. Would you please help me? The font color works well but the background-color doesn't work, even thought I use Bootstrap in the toolbar it still doesn't work. I remove some unnecessary code to make it clean. I also realized it's impossible to do CSS isolation in other components, so I put the css in the global stylesheet.
<TelerikGrid Data="GridDataViewModel" Class="addBtn">
<GridColumns>
<GridColumn Field="@nameof(ViewModel.Editor)" Editable="false"></GridColumn>
<GridColumn Field="@nameof(ViewModel.EditTime)" Editable="false"></GridColumn>
<GridCommandColumn Width="190px">
<GridCommandButton Command="Save" Icon="save" ShowInEdit="true">Update</GridCommandButton>
</GridCommandColumn>
</GridColumns>
<GridToolBar>
<GridCommandButton Command="Add" Icon="add" Class="addBtn">Add Branch</GridCommandButton>
</GridToolBar>
</TelerikGrid>
div.k-toolbar button.k-button-icontext {
background-color: #4CAF50;
color: forestgreen
}
.addBtn {
background-color: #4CAF50;
}