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

    Hi,

    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"?>
    -<Appointments>
      <NextID>399350</NextID>
      <Appointment>
           <ID>388748</ID>
           <Subject>ABC XYZ</Subject>
           <Start>2013-04-10T16:00:00</Start>
           <End>2013-04-10T20:00:00</End>
           <Attribute Value="Evelyn Bailey" Key="PersonName"/>
           <Attribute Value="Type-1" Key="Type"/>
           <Attribute Value="Category-1" Key="Category"/>
      </Appointment>
      <Appointment>
           <ID>388749</ID>
           <Subject>PQR XYZ</Subject>
           <Start>2013-04-11T13:00:00</Start>
           <End>2013-04-11T14:00:00</End>
           <Attribute Value="Bob Smith" Key="PersonName"/>
           <Attribute Value="Type-2" Key="Type"/>
           <Attribute Value="Category-2" Key="Category"/>
      </Appointment>
    </Appointments>


        <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>
                <AppointmentTemplate>
                    <%# IIf(String.IsNullOrWhiteSpace(Eval("PersonName")), "", Eval("PersonName") + ", ")%>
                    <%# IIf(String.IsNullOrWhiteSpace(Eval("Type")), "", Eval("Type") + ", ")%><br />
                    <%# Eval("Subject") %>, <%# Eval("Category")%>
                </AppointmentTemplate>
        </telerik:RadScheduler>

    Thank you for all replies,
    Piyush






  2. Plamen
    Admin
    Plamen avatar
    2729 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.

    Regards,
    Plamen
    Telerik
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top