This is a migrated thread and some comments may be shown as answers.

Using Google calendar as data source for scheduler

1 Answer 464 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
soul auctioneer
Top achievements
Rank 1
soul auctioneer asked on 20 Mar 2008, 10:58 AM
Hi,
I'm building a web-based enterprise CRM using Google Apps for our email and calendar back-end. I'm very interested in implementing a Telerik scheduler that uses the Google API to read and update event information. Google has a .NET library for handling the API calls:
http://code.google.com/apis/gdata/client-cs.html
http://code.google.com/apis/calendar/developers_guide_protocol.html#AuthClientLogin

My question is, can I take the the feed for an event list, as it's returned by the Google Data API, and pass it into Telerik scheduler for display? The feed looks something like this:

<feed xmlns='http://www.w3.org/2005/Atom'
    xmlns:gd='http://schemas.google.com/g/2005'>
  <id>http://www.google.com/calendar/feeds/jo@gmail.com/private-magicCookie/full</id>
  <updated>2006-03-29T07:35:59.000Z</updated>
  <title type='text'>Jo March</title>
  <subtitle type='text'>This is my main calendar.</subtitle>
  <link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml'
    href='http://www.google.com/calendar/feeds/jo@gmail.com/private-magicCookie/full'></link>
  <link rel='self' type='application/atom+xml'
    href='http://www.google.com/calendar/feeds/jo@gmail.com/private-magicCookie/full'></link>
  <author>
    <name>Jo March</name>
    <email>jo@gmail.com</email>
  </author>
  <generator version='1.0' uri='http://www.google.com/calendar/'>CL2</generator>
  <gd:where valueString='California'></gd:where>
  <entry>
    <id>http://www.google.com/calendar/feeds/jo@gmail.com/private-magicCookie/full/entryID</id>
    <published>2006-03-30T22:00:00.000Z</published>
    <updated>2006-03-28T05:47:31.000Z</updated>
    <category scheme='http://schemas.google.com/g/2005#kind'
      term='http://schemas.google.com/g/2005#event'></category>
    <title type='text'>Lunch with Darcy</title>
    <content type='text'>Lunch to discuss future plans.</content>
    <link rel='alternate' type='text/html'
      href='http://www.google.com/calendar/event?eid=aTJxcnNqbW9tcTJnaTE5cnMybmEwaW04bXMgbWFyY2guam9AZ21haWwuY29t'
      title='alternate'></link>
    <link rel='self' type='application/atom+xml'
      href='http://www.google.com/calendar/feeds/jo@gmail.com/private-magicCookie/full/entryID'></link>
    <author>
      <name>Jo March</name>
      <email>jo@gmail.com</email>
    </author>
    <gd:transparency
      value='http://schemas.google.com/g/2005#event.opaque'></gd:transparency>
    <gd:eventStatus
      value='http://schemas.google.com/g/2005#event.confirmed'></gd:eventStatus>
    <gd:comments>
      <gd:feedLink
        href='http://www.google.com/calendar/feeds/jo@gmail.com/private-magicCookie/full/entryID/comments/'></gd:feedLink>
    </gd:comments>
    <gd:when startTime='2006-03-30T22:00:00.000Z'
      endTime='2006-03-30T23:00:00.000Z'></gd:when>
    <gd:where></gd:where>
  </entry>
</feed>


...thanks for your help!

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 21 Mar 2008, 05:29 PM

Hi Ash,

You cannot directly use this feed to pass it to RadScheduler, since our control expects objects of type 
Telerik.Web.UI.Appointment. You can, however, use a custom provider to process the feed and convert it into an acceptable format which RadScheduler can understand. More on custom providers you can read here.


Regards,
Peter
the Telerik team


Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
soul auctioneer
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or