Scheduler WebService XML - Filter data presented to the user

2 posts, 0 answers
  1. Piyushkumar
    Piyushkumar avatar
    25 posts
    Member since:
    Nov 2010

    Posted 29 Jan 2014 Link to this post


    I am using Telerik Scheduler to show appointments from the database. We decided to use client side web service since we have heavy application and want to use lighter version.

    #1: Web service work with single XML file. We need to filter the data presented to user based on the company he logged-in with.
           Since the data is read from single XML file and I couldn't find any built-in filter support, how do I achieve it?
           Do we need to customize GetAppointment() function on "Implement Provider"? OR Do we need to use separate XML file per company?

    #2: For some reason values for CustomAttributeNames are not displayed on Appointment on Scheduler. 
          Is there anything wrong with the XML format OR the way I display it?
          Here is my partial code:

    <?xml version="1.0" encoding="UTF-8"?>
           <Subject>ABC XYZ</Subject>
           <Attribute Value="Evelyn Bailey" Key="PersonName"/>
           <Attribute Value="Type-1" Key="Type"/>
           <Attribute Value="Category-1" Key="Category"/>
           <Subject>PQR XYZ</Subject>
           <Attribute Value="Bob Smith" Key="PersonName"/>
           <Attribute Value="Type-2" Key="Type"/>
           <Attribute Value="Category-2" Key="Category"/>

        <telerik:RadScheduler runat="server" ID="RadScheduler1" ... ...
            DataKeyField="ID" DataSubjectField="SubjectLine" DataStartField="StartDate" DataEndField="EndDate"
            CustomAttributeNames="PersonName,Type,Category" ... ...>
            <WebServiceSettings Path="~\Forms\SchedulerWebService.asmx" ResourcePopulationMode="ClientSide"></WebServiceSettings>
                    <%# IIf(String.IsNullOrWhiteSpace(Eval("PersonName")), "", Eval("PersonName") + ", ")%>
                    <%# IIf(String.IsNullOrWhiteSpace(Eval("Type")), "", Eval("Type") + ", ")%><br />
                    <%# Eval("Subject") %>, <%# Eval("Category")%>

    Thank you for all replies,

  2. Plamen
    Plamen avatar
    2798 posts

    Posted 03 Feb 2014 Link to this post

    Hi Piyushkumar,

    1) You can refer to this Code Library where is provided a sample solution for similar implementation with RadScheduler and XML provider which we recommend.

    2) The issue is most probably caused by the Appointment template that is used. In cases with WebService binding we recommend using jQuery template as it is done in this on-line demo.

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top