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

Searching Scheduler Server Side

2 Answers 99 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ross Miles
Top achievements
Rank 1
Ross Miles asked on 27 May 2008, 08:53 PM
Hi,

Our CMS product has two components. An editor (inside the safe network) which authors edit content, including creating events and appointments in the RadScheduler. This information, including RadScheduler XML is then taken and sent to another non-secure site for display. This "live" site utilises the RadScheduler content in a variety of ways, none of which are actually shown in the RadSchduler UI. One of these usages is integrated search.

My question is, what is best best way to query the RadScheduler data server-side, i.e. "I want all the Appointments that occur (or have re-occurrance) within a particular date range".

Currently I am using  the .Appointments.GetAppointmentsInRange(startDate, endDate) on the RadScheduler class - I am wondering if there is another more efficient way to do this without having to instanciate a RadScheduler every time (the search engine doesn't have  UI component - the RadScheulder will not be inserted into a page *anywhere* on the live site). Maybe something on the provider directly (XmlSchedulerProvider)?

Also if instanciating RadScheduler every time is the best (only) way, is it thread-safe so I can make it a singleton object to save space on the heap (and inevitable data load and other startup overhead as the data grows over time)?

Efficiency is key here, our search engine has to copy with a very high volume, and it cannot have a performance hit after we integrate this new "events" search feature.

Thanks in advance,

Jordan.

2 Answers, 1 is accepted

Sort by
0
Accepted
T. Tsonev
Telerik team
answered on 29 May 2008, 12:39 PM
Hello,

I have prepared a little sample that demonstrates reading the appointments from the provider and expanding the recurring appointments. The resulting collection contains all appointments in the specified date range. A RadScheduler instance is created, but only because it is required by the provider. It is not added to the page and does not take any significant resources.

I have utilized the XmlSchedulerProvider in the example in order to read the appointments. You should be able to optimize this process if you read the appointments from the XML file manually. You might take a look at this help article that describes how XmlSchedulerProvider works. You basically need the GetAppointments method.

Kind regards,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ross Miles
Top achievements
Rank 1
answered on 01 Jun 2008, 09:15 PM
Works a charm :)

Thanks!
Tags
Scheduler
Asked by
Ross Miles
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Ross Miles
Top achievements
Rank 1
Share this question
or