<style>
/*to apply color to group drop area*/
.e-grid .e-groupdroparea {
background-color: red;
color: yellow;
}
/*to apply styles to toolbar button using below highlighted button text cssclass*/
.e-grid .e-toolbar .e-toolbar-items .e-toolbar-item .e-tbar-btn-text,
/*change color color-profile icons input toolbar*/
.e-grid .e-toolbar .e-toolbar-items .e-toolbar-item .e-icons {
color: yellow;
}
/*to apply style to toolbar and button*/
.e-grid .e-toolbar,
.e-grid .e-toolbar .e-toolbar-items,
.e-grid .e-toolbar .e-toolbar-items .e-toolbar-item,
.e-grid .e-toolbar .e-toolbar-items .e-toolbar-item button {
background-color: red;
}
</style>
|
|
<SfToolbar CssClass="custom" Width="600px">
<ToolbarItems>
<ToolbarItem Text="Cut"></ToolbarItem>
<ToolbarItem Text="Copy"></ToolbarItem>
. . .
</ToolbarItems>
</SfToolbar>
<style>
.custom {
background-color: blue !important;
}
.e-toolbar .e-toolbar-items {
background-color: blue !important;
// To Apply background color to Toolbar items
}
</style> |
<style>
/* when grid toolbar button is selected */
.e-grid .e-toolbar .e-toolbar-items .e-toolbar-item button:active,
/*apply color when grid toolbar button is hovered*/
.e-grid .e-toolbar .e-toolbar-items .e-toolbar-item button:hover {
background-color: blue;
}
/*To Apply background color to Toolbar items*/
.e-toolbar,
.e-toolbar .e-toolbar-items,
.e-toolbar .e-toolbar-items .e-toolbar-item,
.e-toolbar .e-toolbar-items .e-toolbar-item button {
background-color: #e9ecef;
}
. . . . . . . . . .
</style>
|
<h3>TESTING</h3>
<SfToolbar Width="100%">
<ToolbarItems>
<ToolbarItem Type="@ItemType.Button" Text="Search" PrefixIcon="e-search"></ToolbarItem>
<ToolbarItem Type="@ItemType.Button" Text="Daily Activity"></ToolbarItem>
</ToolbarItems>
</SfToolbar> |