Can i Change CssClass of Column?
Can I change the CssClass of the same Column depending on a Model Value?
Lets say True: CssClass = "foo" ; False: CssClass = "bar"
c4
asked
at 28 Nov 2019
Answers
-
You can change the class of the row using
RowClassClientFormat
and you can set a class to theColumn
usingColumn.CssClass
, so in your css instead of.mycolclass1 {}
you'll use
.mycolclass2 {}.myrowclass .mycolclass1 {}
example here: https://demo.aspnetawesome.com/GridDemo/CustomFormat (note the date column)
.myrowclas2 .mycolclass1 {}Omuanswered at 29 Nov 2019-
Works Perfect Sir o, thx alot.at 29 Nov 2019 c4
-