-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set grid row css-classes #139
Comments
I now understand your scenario, but could you suggest us how should we handle this scenario? What option should we provide? |
Is it possible to provide us with a kendoRowTemplate? Example:
|
Indeed row template is one way to go. However there are certain limitation with it due to the fact that it controls the whole row rendering:
To us row template has more cons than pros and this is the reason to refrain implement it for the moment. What is your comment on this? Do you have other suggestions which we can consider? |
Hi @rusev we really need to have a way to set class to single tr element depending on dataItem. There are really so many scenario where we need this important feature. Or to assign class field as you just do with input field on ColumnComponent. For example |
I had a response about it on professional support directly from Telerik and issue is now open...so thanks! Really! How to implement this important feature? I have just few suggestions:
I hope to give you an idea how i think to use it. I know that templates are configured using columns definitions so i think it is not necessary to introduce a new template structure for rows....i guess it is enough to have a simple/one input or callback to get correct class to use on "tr" element. My two cents! |
Thank you for the comments @meriturva . We will research further for possible implementation and will post our suggestion for the API. |
I'm trying to use class option on columns as suggested by docs But style doesn't apply... |
First you have to fix your style definition: Second you have to use a view encapsulation to none: http://plnkr.co/edit/8Hwvl7HmQ0Ps4ZSb6F5u?p=preview Anyway here issue is related to row class not column/cell one. |
Thanks! |
@KirilNN is it resolved? do you have any docs or strategies you have implemented here? |
Sorry, hit the wrong button on the wrong issue. Reopening. |
Hi all, Grid package version 0.30.0 allows you to define a row class callback. Here is how it looks like (docs are not yet deployed on the site).
|
how does one access the 0.30.0 version of the grid code? |
The source code can be obtained by submitting a support ticket. |
Is there a way to set css-classes that affect the whole row?
example:
The text was updated successfully, but these errors were encountered: