Hello. Apologies if this issue is covered elsewhere, I couldn't find a clear statement of what to do with this kind of scenario:
I have a Kendo (v2014.2.716) grid on a page with a couple of custom commands defined. I'm also using Bootstrap (v3.0.1) for styling purposes, therefore I'm including both kendo.bootstrap.min.css and kendo.common-bootstrap.min.css in my project. I'm trying to apply a couple of Bootstrap CSS classes to the command such that the colors are consistent with buttons in other parts of the page:
command: [
{
name: "view", text: "View", className: "btn btn-warning",
click: function (e) {
// some irrelevant code here.....
}
}
However, when the buttons are rendered, the colors defined by the Bootstrap CSS are getting overridden. After taking a look with a DOM explorer in a browser, I see that the command link is getting the following classes applied to it:
<a class="k-button k-button-icontext btn btn-warning k-grid-view" href="#"><span class=" "></span>View</a>
It appears that the k-button class is defining a color, border-color, and background-color.
So my questions are:
1) Why are these two CSS classes prepended to the classes specified by the className attribute? I could understand this for critical sizing issues, but not for colors.
2) Is there a recommended workaround short of re-defining all the Bootstrap styles I need with an !important next to the values that must take precedence?
I have a Kendo (v2014.2.716) grid on a page with a couple of custom commands defined. I'm also using Bootstrap (v3.0.1) for styling purposes, therefore I'm including both kendo.bootstrap.min.css and kendo.common-bootstrap.min.css in my project. I'm trying to apply a couple of Bootstrap CSS classes to the command such that the colors are consistent with buttons in other parts of the page:
command: [
{
name: "view", text: "View", className: "btn btn-warning",
click: function (e) {
// some irrelevant code here.....
}
}
However, when the buttons are rendered, the colors defined by the Bootstrap CSS are getting overridden. After taking a look with a DOM explorer in a browser, I see that the command link is getting the following classes applied to it:
<a class="k-button k-button-icontext btn btn-warning k-grid-view" href="#"><span class=" "></span>View</a>
It appears that the k-button class is defining a color, border-color, and background-color.
So my questions are:
1) Why are these two CSS classes prepended to the classes specified by the className attribute? I could understand this for critical sizing issues, but not for colors.
2) Is there a recommended workaround short of re-defining all the Bootstrap styles I need with an !important next to the values that must take precedence?