Scheduler - WCF Web Service

  • today
January, 2012
January, 2012
SMTWTFS
       
1234567
891011121314
15161718192021
22232425262728
293031    
1/29/2012 - 2/4/2012
  • Day
  • Week
  • Month
  • Timeline
all day
8AM
 
9AM
 
10AM
 
11AM
 
12PM
 
1PM
 
2PM
 
3PM
 
4PM
 
5PM
 
Show 24 hours...
Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

Web-Service binding allows the developer to improve performace by minimizing the HTML output and removing the need of a page refresh. In this mode RadScheduler does not postback to the page and the appointments are rendered on the client. To bind RadScheduler to a WCF service you need to set the WebServiceSettings property:

<telerik:RadScheduler runat="server" ID="RadScheduler1">
    <WebServiceSettings Path="SchedulerWcfService.svc" />
</telerik:RadScheduler>

Using Web-Service binding requires a Data Provider. Check the SchedulerWcfService.cs file for the implementation of the web service.

  • DefaultCS.aspx
  • SchedulerWcfService.cs
<%@ Page Language="C#"  %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<script runat="server">

    protected void RadScheduler1_Load(object sender, EventArgs e)
    {
        //this code clears the sessionkey for demo related purposes
        Session.Remove(SchedulerWebService.ProviderSessionKey);
    }
</script>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-container no-bg">
        <telerik:RadScheduler RenderMode="Lightweight" runat="server" ID="RadScheduler1" SelectedView="WeekView" SelectedDate="2012-01-31" OnLoad="RadScheduler1_Load"   
            OverflowBehavior="Auto">
            <WebServiceSettings Path="SchedulerWcfService.svc" ResourcePopulationMode="ServerSide">
            </WebServiceSettings>
        </telerik:RadScheduler>
    </div>
    </form>
</body>
</html>

Find Assistance

Help Us Improve

Was this example helpful?