1

I'm use of kendo-grid in my project for many reason.

In one of the cell, I want to set input TextBox like:

<kendo-grid-column field="value" title="{{l('Value')}}" width="200"></kendo-grid-column>

As you see, in client, I have bad style Section of bad style

Attention that I never use of any CSS, which want to effect to this.

AmirReza-Farahlagha
  • 1,204
  • 14
  • 26

5 Answers5

1

You can use ng-style (I'm using angular 5 and [style] works fo me)

For example:

ng-style="{'background-color':'blue'}"

Learn here:https://docs.angularjs.org/api/ng/directive/ngStyle

<kendo-grid-column field="value"  title="{{l('Value')}}" ng-style="{'background-color':'blue'}" width="200"></kendo-grid-column>

EDIT!

According this answer:Kendo UI Grid and ng-style

Use \" \":

ng-style=\"{'background-color':'blue'}\"
לבני מלכה
  • 15,925
  • 2
  • 23
  • 47
1

If you want to set style in kendogrid, you have to override basic css of your selection tag like this:

Image processor > a > span > (your general css class)

Now you have your css that you wanted.

1

You can use Attribute Style

    <kendo-grid-column [style]="{'background-color': '#666','color': '#fff','line-height': '1em'}">
</kendo-grid-column>
0

Actually I don't like to answer my question, but it's better to answer.

If you want to style to that, you have to find one of css class and override that. it's best way to set style to cell-grid

GoodLuck.

AmirReza-Farahlagha
  • 1,204
  • 14
  • 26
0

You can not set style classes in kendo-grid but you can find kendo classes and override them.