New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

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...

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.

  • DefaultVB.aspx
<%@ Page Language="VB"  %>

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

    Protected Sub RadScheduler1_Load(sender As Object, e As EventArgs)
        'this code clears the sessionkey for demo related purposes
        Session.Remove(SchedulerWebService.ProviderSessionKey)
    End Sub
</script>

<!DOCTYPE html>
<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>

Support & Learning Resources

Find Assistance