This is a migrated thread and some comments may be shown as answers.

Scheduler with ExchangeSchedulerProvider not retrieving all appointments

6 Answers 54 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
jwhitley
Top achievements
Rank 1
jwhitley asked on 10 Mar 2016, 09:02 AM

We use the Scheduler control with Exchange to list known service outages. We show three different schedulers, all linked to the same provider, to show last week, this week and next week.

We have recently found that scheduler is not showing new appointments, although creating new appointments in scheduler does push them back to Exchange. Deleting old appointments (which is something we don't want to do) allows the requisite number of future appointments to show, so it would appear that:

1.) ExchangeSchedulerProvider is always retrieving appointments from the beginning of time

2.) There is a limit to the number of appointments retrieved that is too low for our requirements.

So my questions are:

1.) Can I set the provider to only retrieve appointments from a certain date?

2.) If not, can I increase the number of appointments retrieved (far from ideal).

Thanks.

6 Answers, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 15 Mar 2016, 09:13 AM
Hi John,

Can you send a sample project, so we can review your code?

Thanks.

Regards,
Hristo Valyavicharski
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
jwhitley
Top achievements
Rank 1
answered on 22 Mar 2016, 08:31 AM

Sorry for the delay. The code is very simple:

<table width="100%">
     <tr>
        <td class="GeneralMiddle" align="center">Last Week</td>
        <td class="GeneralMiddle" align="center">This Week</td>
        <td class="GeneralMiddle" align="center">Next Week</td>
     </tr>
     <tr>
        <td>
            <telerik:RadScheduler ID="schLastWeek" runat="server" Culture="en-GB" MinutesPerRow="60" OverflowBehavior="Expand" SelectedView="WeekView"
             WorkDayEndTime="18:00:00" Width="600px" >
             <WeekView DayEndTime="00:00:00" DayStartTime="00:00:00"
             WorkDayEndTime="18:00:00" />
             <AdvancedForm Modal="true" />
             <ResourceTypes>
                <telerik:ResourceType AllowMultipleValues="true" Name="Category" TextField="Category" KeyField="Category" ForeignKeyField="Category" />
             </ResourceTypes>
             <ResourceStyles>
                            <telerik:ResourceStyleMapping Type="Category" Text="Blue Category" ApplyCssClass="rsCategoryDarkBlue" />
                            <telerik:ResourceStyleMapping Type="Category" Text="Green Category" ApplyCssClass="rsCategoryGreen" />
                            <telerik:ResourceStyleMapping Type="Category" Text="Orange Category" ApplyCssClass="rsCategoryOrange" />
                            <telerik:ResourceStyleMapping Type="Category" Text="Purple Category" ApplyCssClass="rsCategoryViolet" />
                            <telerik:ResourceStyleMapping Type="Category" Text="Red Category" ApplyCssClass="rsCategoryRed" />
                            <telerik:ResourceStyleMapping Type="Category" Text="Yellow Category" ApplyCssClass="rsCategoryYellow" />
                        </ResourceStyles>
 
            </telerik:RadScheduler>
        </td>
        <td>
            <telerik:RadScheduler ID="schThisWeek" runat="server" Culture="en-GB"
                MinutesPerRow="60" Skin="Office2007" EnableDescriptionField="true"
                AppointmentStyleMode="Default" OverflowBehavior="Expand" SelectedView="WeekView"
             WorkDayEndTime="18:00:00" Width="600px" >
             <WeekView DayEndTime="00:00:00" DayStartTime="00:00:00"
             WorkDayEndTime="18:00:00" />
             <AdvancedForm Modal="true" />
             <ResourceTypes>
                <telerik:ResourceType AllowMultipleValues="true" Name="Category" TextField="Category" KeyField="Category" ForeignKeyField="Category" />
             </ResourceTypes>
             <ResourceStyles>
                            <telerik:ResourceStyleMapping Type="Category" Text="Blue Category" ApplyCssClass="rsCategoryDarkBlue" />
                            <telerik:ResourceStyleMapping Type="Category" Text="Green Category" ApplyCssClass="rsCategoryGreen" />
                            <telerik:ResourceStyleMapping Type="Category" Text="Orange Category" ApplyCssClass="rsCategoryOrange" />
                            <telerik:ResourceStyleMapping Type="Category" Text="Purple Category" ApplyCssClass="rsCategoryViolet" />
                            <telerik:ResourceStyleMapping Type="Category" Text="Red Category" ApplyCssClass="rsCategoryRed" />
                            <telerik:ResourceStyleMapping Type="Category" Text="Yellow Category" ApplyCssClass="rsCategoryYellow" />
                        </ResourceStyles>
 
            </telerik:RadScheduler>
        </td>
        <td>
            <telerik:RadScheduler ID="schNextWeek" runat="server" Culture="en-GB" MinutesPerRow="60" OverflowBehavior="Expand" SelectedView="WeekView"
             WorkDayEndTime="18:00:00" Width="600px" >
             <WeekView DayEndTime="00:00:00" DayStartTime="00:00:00"
             WorkDayEndTime="18:00:00" />
             <AdvancedForm Modal="true" />
             <ResourceTypes>
                <telerik:ResourceType AllowMultipleValues="true" Name="Category" TextField="Category" KeyField="Category" ForeignKeyField="Category" />
             </ResourceTypes>
             <ResourceStyles>
                            <telerik:ResourceStyleMapping Type="Category" Text="Blue Category" ApplyCssClass="rsCategoryDarkBlue" />
                            <telerik:ResourceStyleMapping Type="Category" Text="Green Category" ApplyCssClass="rsCategoryGreen" />
                            <telerik:ResourceStyleMapping Type="Category" Text="Orange Category" ApplyCssClass="rsCategoryOrange" />
                            <telerik:ResourceStyleMapping Type="Category" Text="Purple Category" ApplyCssClass="rsCategoryViolet" />
                            <telerik:ResourceStyleMapping Type="Category" Text="Red Category" ApplyCssClass="rsCategoryRed" />
                            <telerik:ResourceStyleMapping Type="Category" Text="Yellow Category" ApplyCssClass="rsCategoryYellow" />
                        </ResourceStyles>
 
            </telerik:RadScheduler>
        </td>
     </tr>
    </table>
public partial class Scheduler : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            schLastWeek.SelectedDate = DateTime.Today.AddDays(-7);
            schThisWeek.SelectedDate = DateTime.Today;
            schNextWeek.SelectedDate = DateTime.Today.AddDays(7);
        }
    }
 
    protected void Page_Init(object sender, EventArgs e)
    {
        ExchangeSchedulerProvider provider =
            new ExchangeSchedulerProvider(ConfigurationManager.AppSettings["ExchangeServerURL"],
     ConfigurationManager.AppSettings["TheUser"], ConfigurationManager.AppSettings["ThePassword"], ConfigurationManager.AppSettings["TheDomain"]);
 
        schLastWeek.Provider = provider;
        schThisWeek.Provider = provider;
        schNextWeek.Provider = provider;
    }
}

0
Hristo Valyavicharski
Telerik team
answered on 25 Mar 2016, 09:18 AM
What is the value of the ConfigurationManager.AppSettings["TheUser"], 
Try to put your email. 

Regards,
Hristo Valyavicharski
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
jwhitley
Top achievements
Rank 1
answered on 26 Mar 2016, 10:50 PM
TheUser, ThePassword and TheDomain are all valid for the associated Exchange mailbox. I've just changed their names in the sample code. There are no credential issues, the ExchangeSchedulerProvider connects to Exchange just fine. TheUser is indeed an email address.
0
Hristo Valyavicharski
Telerik team
answered on 31 Mar 2016, 06:15 AM
There is a bug in the provider, at the moment it can list only the appoints from the default calendar, which is associated with the user's email addresses.

Regards,
Hristo Valyavicharski
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
jwhitley
Top achievements
Rank 1
answered on 31 Mar 2016, 06:35 AM

That might well be a bug, but it is not my issue. The default calendar is what I need, but as per my original post, it is not reading all the appointments I want and it only seems to read appointments from the beginning of time, not just for the time period being displayed.

I will raise this as a support ticket instead as I need a faster response.

Tags
Scheduler
Asked by
jwhitley
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
jwhitley
Top achievements
Rank 1
Share this question
or