Skip to content

Replies

0
User42
User42 answered on Nov 14, 2018 1:15 PM

Thanks for the suggestion but your solution would apply that style to all objects that use those classes which if I"m not mistaken are all of the headers for any igxgrid.

I'm trying to apply a class to a specific cell in a specific grid. I'm not having an issue with the CSS values needed, my problem is that the class is not seen by the grid.

When I look at the grid via Chrome's debugger, the class isn't listed at all. If I manually add the class through the debugger it works fine.

0
User42
User42 answered on Nov 12, 2018 12:18 PM

Are you saying that cellClasses can't be applied to <igx-column-group-header> objects? If so, the documentation that I linked in my original post is incorrect as it lists cellClasses as a supported property.

All I'm trying to do is affect the position of the text in the header of the grouped columns.What is the suggested way of doing so?

0
User42
User42 answered on Nov 9, 2018 2:02 PM

Thanks for the tip but that's not getting me anywhere either. I've tried it in the manners shown below based on your suggestion and the sample you provided. Neither way worked. The class just isn't getting applied.

Here is the class I'm trying to apply:

Class is found in component.scss

.igx-thead_center-and-middle-text {
  display: --webkit-box;
  -webkit-box-pack: center;
  -webkit-box-align: center;
}

Here is the first way I tried it:

Applied in component.html

Here is the second way I tried it

Applied in component.ts

  public theadCenter = {
    "igx-thead_center-and-middle-text": true
  };

Applied in component.html

Any other suggestions?