This is a migrated thread and some comments may be shown as answers.

Can't change color of command button on grid

3 Answers 1474 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 05 Jul 2013, 07:00 PM
I'm trying to change the color of the grid command button but the CSS is not taking effect.  The CSS is being called because the font size is changing.  The color is not for some reason.  Any ideas.


CSS:
.editButtonChangeColor
{
background-color: Red;
color: Red;
border-color: Red;
font-size: 20px;
}

Databound function of grid:
$(".k-grid-edit").addClass("editButtonChangeColor");

3 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 08 Jul 2013, 06:31 AM
Hi Jeff,


The command buttons also have a background-image property specified, which is overriding the specified background color. Please use the following or similar styles.
E.g.
.k-grid-edit
{
    background-image: none;
    background-color: blue;
}

I hope that this was the information that you were looking for. I wish you a great day!

 

Regards,
Dimiter Madjarov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Jeff
Top achievements
Rank 1
answered on 08 Jul 2013, 09:54 PM
Hi Dimiter,

I've tried your solution and I'm still getting the same issue.
0
Dimiter Madjarov
Telerik team
answered on 09 Jul 2013, 07:30 AM
Hi Jeff,


I am not sure what could be the problem by your side. Here is a JS Bin example, which demonstrates that the approach is working.

Please let me know if the example was helpful for you or I could assist you further.

 

Regards,
Dimiter Madjarov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Jeff
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Jeff
Top achievements
Rank 1
Share this question
or