Seal Report Forum
»
Report Edition
»
Reports
»
I do not see custom cell css property
Rank: Member
Groups: Registered
Joined: 10/21/2019(UTC) Posts: 16
|
I need to align-center the contents of the results table, The forum indicates to use the following: Model > Select Element > Advanced > there is no custom css cell property But I do not see the Custom CSS cell property; is there any other way to align the contents of the results table This mostly applies to numeric values. The text values are aligning correctly Edited by user Wednesday, October 23, 2019 6:56:16 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
Yes, it has been moved to Cell Script, please check the Cell Script to change your CSS dynamically. example to display negative values in red: Code:@using Seal.Model
@{
//Display negative values in red and bold
ResultCell cell=Model;
ReportElement element = cell.Element;
ReportModel reportModel = element.Model;
Report report = reportModel.Report;
if (cell.DoubleValue < 0)
{
cell.FinalCssStyle = "font-weight:bold;";
cell.FinalCssClass = "danger lead text-right"; //These are Bootstrap classes
}
}
|
|
|
|
Rank: Member
Groups: Registered
Joined: 10/21/2019(UTC) Posts: 16
|
Thank you. I did use the Cell script and it worked as expected.
|
|
|
|
Seal Report Forum
»
Report Edition
»
Reports
»
I do not see custom cell css property
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.