Jan 11, 2016, 9:27 PM
[FIXED] [#1222] [3.3] Changing icon on back-end no longer works
In code that worked with 2.X I would check for a specific value and then change the icon from BulletTick to BulletCross if the value I was checking was not at least a certain value. After converting to 3.2, I don't receive an error for this code but it does not work. If I comment out the lines regarding the icons everything else works fine, if I leave them in the window they are part of will not display at all. As a side note, I can still set an icon on the front end, but it seems this backend control is no longer available. How can we change icons for Display Fields on the back end now?
Here is a sample:
Here is a sample:
Decimal cHours = Convert.ToDecimal(twp.studentCreditHours);
if (Decimal.Compare(cHours, MiscUtility.MIN_CREDITHOURS) < 0)
{
dfStudentCreditHours.AddCls("red-alert");
dfStudentCreditHours.Icon = Icon.BulletCross;
}
else
{
dfStudentCreditHours.RemoveCls("red-alert");
dfStudentCreditHours.Icon = Icon.BulletTick;
}
Last edited by Daniil; Jan 15, 2016 at 11:34 AM.
Reason: [FIXED] [#1222] [3.3]