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

Styling Command Button's

1 Answer 1249 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 09 Apr 2020, 01:27 PM

Is there a way to apply more styles to the GridCommandButton's? I would like the icons and labels to be differentiated a little more like the following...

 

https://codepen.io/danielmariveles/pen/jPrwxv

 

Thanks,

 

Rob

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 09 Apr 2020, 04:58 PM

Hi Rob,

You can add content between the opening and closing tags of the command button in order to add custom icons (in case the built-in ones don't suffice). You can also add a Class to the button to add the desired styling that will override the built-in styles we have.

An alternative is to use a regular column to put your own buttons and control the grid through its state, as explained here: https://feedback.telerik.com/blazor/1461283-pass-the-model-context-to-command-button.

 

Regards,
Marin Bratanov
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
Rob
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or