Importing data from ics file

I'm using Blazor Server 19.4

I don't find a way to refresh the sFschedule content after importing the Google calendar ics file

there's this piece of code in your demo page

Blazor Scheduler Export and Import ICS Example - Syncfusion Demos


 private List<AppointmentData> dataSource = new ScheduleData().GetExportingData();

but the content of the  GetExportingData() method is not showed

Best regards


3 Replies

SK Satheesh Kumar Balasubramanian Syncfusion Team February 9, 2022 03:06 PM UTC

Hi Walter,
We have prepared sample to refresh the events.
Index.razor: 
    public async Task OnChange(UploadChangeEventArgs args)
    {
        foreach (UploadFiles file in args.Files)
        {
            file.Stream.Position = 0;
            StreamReader reader = new StreamReader(file.Stream);
            await ScheduleRef.ImportICalendar(reader.ReadToEnd());
        }
        await ScheduleRef.RefreshEventsAsync();
    }
Kindly try the above sample and let us know if this meets your requirement.
Regards,
Satheesh Kumar B




WM Walter Martin February 10, 2022 09:17 PM UTC

it's exactly what I needed 

thanks




VM Vengatesh Maniraj Syncfusion Team February 11, 2022 03:43 AM UTC

You are most welcome!!!


Loader.
Up arrow icon