ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
RowClassClientFormat change in new 7.0 version?
Title:
B
I
{code}
?
RowClassClientFormat code (used the same as posted in the below link) does not work after upgrading to version 7.0. https://www.aspnetawesome.com/forum/question/822/change-the-color-and-the-height-of-the-grid-rows-depending-on-its-data Changed the code from `.RowClassClientFormat(".rowColor")` to `.RowClassClientFormat(".(rowColor)")` for the row class to apply. However, the *background color* of the tr is not working. Font-weight style is working fine. CSS used: .awe-row.unread { background-color: #0fd3e7 !important; font-weight: 600 !important; } .awe-row.coral { background-color: lightcoral !important; font-weight: 600 !important; }
Save Changes
Cancel
Ren
asked at 20 Jan 2023
Answers
B
I
{code}
?
yes, for the client format you need to use only `.(Prop)` since 7.0 https://www.aspnetawesome.com/learn/release/Version7-0#Migrating-from-previous-versions as for the row colors you can have a look here: https://demo.aspnetawesome.com/GridDemo/CustomFormat instead of `.awe-row.coral {` try `.awe-row.coral td`
Save Changes
Cancel
Omu
answered at 20 Jan 2023
Adding td to the CSS works like a charm. Thanks!
at 20 Jan 2023
Ren
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK