Hi everybody,
I tried to replace "args.Element.AddClass" in my scheduler app, which was working fine in Ver. 18.2 :
public string[] CustomClass = {"custom-class"}; public void OnEventRendered(EventRenderedArgs<SchedStuPla> args)
{
if (args.Data.CategoryColor.Trim() == "green")
{
// args.Element.AddClass(CustomClass);
args.CssClasses.Add("custom-class");
BgColor = "#2C7E04";
}
}
Using this solution I get a System.NullReferenceException.
Could somebody please tell me how to replace args.Element.AddClass(CustomClass) correctly ?
Thanks
regards
Uwe