Setting Event Color by Ajax Call

Hi
i use scheduler JS and bind it with ajax
now i need to set the color of event based on Hex Color sent from ajax

 $.ajax({
        url: '@Url.Action("index", "T_Clinic_Working_Hours")',
        data: "clinicID=" + clinicID,
        
        success: function (result) {
            var d = JSON.stringify(result);
            scheduler.parse(result, "json");
        }
    });

this is clinic Appointment system it return all doctor appointmens
in the ajax call i set a color for every doctor

Second Q: How to customize the text so it will be Clinic Name - Doctor Name - Event Text

Thank you

Hi,

You can set Hex Color as a value of “color” of the event to apply the color to the event container:
https://docs.dhtmlx.com/scheduler/custom_events_color.html#specifyingcolorsinpropertiesoftheeventobject

To customize the event text, use event_text template
https://docs.dhtmlx.com/scheduler/day_view_templates.html