how to render a read only calendar from a remote iCal?

1 Answer 142 Views
Calendar Scheduler
Charles
Top achievements
Rank 1
Iron
Iron
Iron
Charles asked on 27 May 2021, 06:25 PM

Hello, we use an OnlyOffice calendar for our scheduling.  We need to make that calendar visible outside of OnlyOffice.  Unfortunately OnlyOffice doesn't support iframing of calendars.

However it does provide a way to export an iCal via a URL.

I'm hoping the Kendo Scheduler can import that iCal (same domain, different FQD, ie www.domain.com is the display site, data is coming from onlyoffice.domain.com).

I found the example on how to use the scheduler, but it refers to loading a local iCal, which doesn't help me.

I've also had great difficulty finding adequate documentation for this?  Something simple like:

1) what to load

2) how to initialize from different sources, including a remote a ical

3) how to make sure the calendar is read only

Any and all help is appreciated.

Thanks!

Charles

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 01 Jun 2021, 09:01 AM

Hello Charles,

What I would suggest you try in order to load data from remote iCal is to define the dataSource transport.read method as a function. In the function, you could send an ajax request to the remote endpoint. You will need to process the returned data as demonstrated in importICal() function in the Import-Export to iCal Demo.

Also, you will need to configure the dataSource schema on Scheduler`s initialization as demonstrated below:

 dataSource: {
    schema: kendo.data.schemas["scheduler-ical"]
  },
 In order to set the Scheduler to read-only, you could set its editable option to 'false'

 

- https://docs.telerik.com/kendo-ui/api/javascript/ui/scheduler/configuration/editable

I hope you will find the provided suggestion helpful.

Regards,
Neli
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Calendar Scheduler
Asked by
Charles
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Neli
Telerik team
Share this question
or