Good Day:
I have a form with several Syncfusion checkbox controls. The text was coming out wrong and hard to read, so I overrode the control defaults using css and updating the "e-text" class. This worked fine and I now see easily readable text.
The problem comes when I need to bold one of the options in a list of checkbox items (so all but one are regular emphasis, and one is bolded). The .CssClass method isn't working for the control.
Here is a code snippet with the checkbox (the last one is the issue that won't bold):
@Html.EJ().CheckBox("chkProgramMontessori").Text("Montessori").Enabled(!disableControls).Checked((Model.ProgramMontessori == null || Model.ProgramMontessori.ToString() == "0" || Model.ProgramMontessori.ToString().ToLower() == "false") ? false : true).CssClass("form-control").CssClass("customdisable")
@Html.EJ().CheckBox("chkProgramTransfer").Text("Transfer").Enabled(!disableControls).Checked((Model.ProgramTransfer == null || Model.ProgramTransfer.ToString() == "0" || Model.ProgramTransfer.ToString().ToLower() == "false") ? false : true).CssClass("form-control").CssClass("customdisable")
@Html.EJ().CheckBox("chkProgramResourceSupport").Text("Resource Support").Enabled(!disableControls).Checked((Model.ProgramResourceSupport == null || Model.ProgramResourceSupport.ToString() == "0" || Model.ProgramResourceSupport.ToString().ToLower() == "false") ? false : true).CssClass("form-control").CssClass("customdisable").CssClass("text-danger").CssClass("boldItem")
The CSS for the default is:
.e-text {
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
font-size: 1.5rem;
font-weight: 400;
}
and the CSS for the custom boldItem class is:
.boldItem {
font-weight: 900;
}
The default font-weight:400 is working, but the 900 isn't. I am able to use the .CssClass to update other look-and-feel items, so am confused why the font-weight is not working.
Any suggestions?
Thanks you!
Jonathan