How to bind scheduler using a Service

So, I am learning this tool and I created a service using DBContext that return the values of the scheduler for a database stored procedure.

How do I set the Datasource?

Below is the snippet of code in index.razor

page "/"
@using BlazorApp1.Data
@using BlazorApp1.Services
@inherits OwningComponentBase<BlazorApp1.Services.SchedulerServices>

<SfSchedule TValue="object" StartHour="01:00" EndHour="23:00" CurrentView="View.Day"></SfSchedule>
@code
{
   ScheduleData[] schedDetails;
    protected override void OnInitialized()
    {
        schedDetails = Service.GetSchedule("021001ZZ");
    }
}

1 Reply 1 reply marked as answer

NR Nevitha Ravi Syncfusion Team February 22, 2021 10:54 AM UTC

Hi Romena, 

Greetings from Syncfusion Support. 

We can assign the data to scheduler using DataSource property within ScheduleEventSettings, please refer to the following link. 

To perform CRUD actions (to insert, update and delete the data in database) you use CustomAdaptor or ODataV4 adaptor, please refer to the following UG link. 

Kindly refer the above links and get back to us if you need any further assistance on this. 

Regards, 
Nevitha 


Marked as answer
Loader.
Up arrow icon