New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Apply custom HTML attributes to the Scheduler appointment


Apply custom HTML attributes to the HTML element generated by the appointment.  


Using "title" as a key for the Attributes collection of the appointment is not allowed and in order to manipulate the "title" attribute of the rendered appointment, you should set the .ToolTip property.

For the other attributes, you can use the following JavaScript executed in the Sys.Application.Load event.

<%-- --%>
<telerik:RadCodeBlock runat="server">
        function pageLoadHandler() {
            var scheduler = $find("<%= RadScheduler1.ClientID %>");
            scheduler.get_appointments().forEach(function (apt) {
                var attributes = apt.get_attributes();
                attributes.forEach(function (key, value) {
                    apt.get_element().setAttribute(key, value);
            // Sys.Application.remove_load(pageLoadHandler); 

<telerik:RadScheduler RenderMode="Lightweight" Font-Size="14px" SelectedDate="2018-11-21" runat="server" ID="RadScheduler1"
protected void Page_Init(object sender, EventArgs e)
    RadScheduler1.Provider = new Telerik.Web.UI.XmlSchedulerProvider(Server.MapPath("~/App_Data/Appointments.xml"), true);

protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
    e.Appointment.Attributes.Add("data-toggle", "tooltip");
    e.Appointment.Attributes.Add("data-placement", "right");
    e.Appointment.ToolTip = "Radscheduler is the best!";
<?xml version="1.0" encoding="utf-8"?>

See Also

In this article