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

Custom command color class not effect

1 Answer 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dario
Top achievements
Rank 1
Veteran
Dario asked on 22 May 2020, 08:06 AM

Hi to all,

I'm trying to set k-success into a custom command but it's not effect, qhy?

My definitions

columns.Command(command => command.Custom("Conforme").Visible("isCompleted").Click("validContact")).HtmlAttributes(new { @class = "k-success" });columns.Command(command => command.Custom("Non Conforme").Visible("isCompleted").Click("notValidContact")).HtmlAttributes(new { @class = "k-danger" });

 

I attach the effect

1 Answer, 1 is accepted

Sort by
0
Accepted
Silviya Stoyanova
Telerik team
answered on 26 May 2020, 10:56 AM

Hello Dario,

The classes "k-success" and "k-danger" do not seem to exist in the Kendo UI stylesheet. 

If you are using a Sass-based theme I would suggest applying classes "k-state-success" and "k-state-error". More about the Sass themes you could find here: https://docs.telerik.com/kendo-ui/styles-and-layout/sass-themes

Or another option is to create your custom classes and coloring the cells with CSS.

 

I hope that would help.

Kind Regards,
Silviya Stoyanova
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Grid
Asked by
Dario
Top achievements
Rank 1
Veteran
Answers by
Silviya Stoyanova
Telerik team
Share this question
or