Custom command color class not effect

2 posts, 1 answers
  1. Dario
    Dario avatar
    40 posts
    Member since:
    Jun 2018

    Posted 22 May 2020 Link to this post

    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

  2. Answer
    Silviya Stoyanova
    Admin
    Silviya Stoyanova avatar
    66 posts

    Posted 26 May 2020 Link to this post

    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.
Back to Top