select

Scheduler / Optimized Queries

Rate this demo: Feedback
Run example in: C# VB.NET Change Skin:
Vista
  • BlackBlack
  • DefaultDefault
  • ForestForest
  • HayHay
  • Office2007Office2007
  • OutlookOutlook
  • SimpleSimple
  • SitefinitySitefinity
  • SunsetSunset
  • TelerikTelerik
  • VistaVista
  • Web20Web20
  • WebBlueWebBlue
  • Windows7Windows7
Example Configuration
This example demonstrates how to optimize the database queries in such way, that only the visible (and recurring) appointments are retrieved. Switch between views and observe the counter.
  • Records loaded from database: 8

previous daynext daytoday

Select date
<<<March 2007>>>
SMTWTFS
    123
45678910
11121314151617
18192021222324
25262728293031
       

Friday, March 30, 2007

all day
Alex's Birthdaydelete
8AM
 
9AM
 
10AM
 
11AM
 
12PM
 
1PM
 
2PM
 
3PM
 
4PM
 
5PM
 
Breakfastdelete
 
 
Technical meetingdelete
 
 
 
Appointment with the dentist.delete
 
Lunchdelete
 
 
Pick up the kids from school.delete
 
 
 
 
 
 
 

Example Source Code & Description

Instructions
Open in new window
  • When retrieving more than a few appointments from a database it is especially useful to be able to limit the query only to the visible timeframe of RadScheduler.

    The VisibleRangeStart and VisibleRangeEnd properties are included to facilitate such optimization.

    Here they are used in conjunction with the parameters of SqlDataSource to avoid retrieving redundant information. This also improves general performance and rendering times.

    Please note that the select query is designed to always retrieve the recurring events. This is necessary as we need to evaluate them in order to determine if they have occurrences in the current time frame.

Compatible with ASP.NET 2.0, 3.5 AJAX enabled Accessibility Verified!Valid XHTML 1.1! Optimized for Visual Studio 2005, 2008
Copyright 2002-2010 © Telerik. All right reserved  | 
Telerik Inc., 460 Totten Pond Rd, Suite 640, Waltham, MA 02451

www.telerik.com  |  Terms of Use  |  Contact Us