Radzen Scheduler Radzen

Can we format or Align the text in the Scheduler?

1 Like

This can be done with CSS or by handling the AppointmentRender event as in our demo.

void OnAppointmentRender(SchedulerAppointmentRenderEventArgs<Appointment> args)
{
  // Never call StateHasChanged in AppointmentRender - would lead to infinite loop
  if (args.Data.Text == "Birthday")
  {
     args.Attributes["style"] = "background: red";
  }
}

Thanks for your help @korchev,