I have a tile layout with 11 containers in it. I need to set the background color of 3 of the tiles to a different color. I am using .NET Core tag helpers.
I tried adding a class attribute to one of the <container> tags, but it had no effect.
1 Answer, 1 is accepted
0
Aleksandar
Telerik team
answered on 26 Apr 2022, 08:38 AM
Hi Colin,
Currently the addition of custom attributes to the containers of the TileLayout items is not supported. This is, however, a valid request, so I went ahead and created a Feature Request on your behalf.
Until such a configuration becomes available I can suggest the following workaround - add a class, that you can use as a selector to the body template of the items you would like to style. You can then use jQuery to find the closest card and apply the desired styling to it, for example: