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