ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Upgrade from 5.5 to 6.7, Grid Footers now HTML Encoded
Title:
B
I
{code}
?
Just upgraded to 6.7. It appears that the grid footers are now HTML Encoded, so my embedded HTML now shows up as literal text (e.g. <b>0</b>). Is there another way to change the format of the grid footer? Below is my current makeFooter method. private object getItemsMakeFooter(GroupInfo<OrderDetail> info) { return new { QuantityOrdered = $"<b>{info.Items.Sum(x => x.QuantityOrdered):N0}</b>" }; }
Save Changes
Cancel
thalter
asked at 05 May 2021
Answers
B
I
{code}
?
You could set `Column.FooterClientFormat` instead to `<B>.(QuantityOrdered)</B>` or you can set `.Encode(false)` on the grid, this will disable it. You can encode the grid values manually in the `GridModelBuilder.Map` method if necessary You could also set `Column { CssClass = "abc"` and the grid footer has `awe-gfoot` class, so with this rule: .awe-gfoot abc { font-weight: 700 } you should get the same result
Save Changes
Cancel
Omu
answered at 05 May 2021
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