I'm exploring the Scheduler and looking to bind it to a remote data source.
I'm using the Remote Data sample you supply as basis but have a few questions:
1. Do you have a demo of the server side code powering the response to that WebApiAdapter endpoint being used?
2. How are new events added or changes updated via this mechanism.
Can I bind to an event beforehand to check them? How are rejections by the server handled?
3. I wanted to add some basic authentication headers to the remote endpoint call.
I tried adding a custom header using the code below - but this gets set as a Access-Control-Request-Headers rather than a named header as I expect.
<div class="col-lg-12 control-section">
<div class="schedule-wrapper">
<EjsSchedule TValue="ScheduleData.AppointmentData" Width="100%" Height="650px" SelectedDate="@(new DateTime(2017, 6, 5))" Readonly="true">
<ScheduleEventSettings TValue="ScheduleData.AppointmentData">
<EjsDataManager Headers="@HeaderData" Url="https://example.com/api/v1/getschedule" Adaptor="@Syncfusion.EJ2.Blazor.Adaptors.WebApiAdaptor"></EjsDataManager>
</ScheduleEventSettings>
</EjsSchedule>
</div>
</div>
@code{
public class Data
{
public string Authorization;
};
private Data[] HeaderData = new Data[] { new Data { Authorization = "Bearer XXX.YYY.ZZZ" } };
}