New to Kendo UI for Angular? Start a free 30-day trial
Applying Custom CSS for Single Components Only
Environment
Product | Progress® Kendo UI for Angular |
Description
I have applied custom styles and have multiple Grid components on the same page. All Grids are affected, but I want only a single Grid to use the custom styles.
Solution
The desired component has to be targeted with a unique CSS selector.
-
Add a
class
to the desired Grid:html<kendo-grid class="foo"></kendo-grid>
-
Target the desired Grid.
css.k-grid.foo { }
The following example demonstrates how to customize only the Grid with the foo
class.
Change Theme
Theme
Loading ...