Scheduler with ExchangeSchedulerProvider not retrieving all appointments

7 posts, 0 answers
  1. jwhitley
    jwhitley avatar
    41 posts
    Member since:
    Oct 2006

    Posted 10 Mar Link to this post

    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.

  2. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 15 Mar Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. jwhitley
    jwhitley avatar
    41 posts
    Member since:
    Oct 2006

    Posted 22 Mar in reply to Hristo Valyavicharski Link to this post

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

  5. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 25 Mar Link to this post

    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.
  6. jwhitley
    jwhitley avatar
    41 posts
    Member since:
    Oct 2006

    Posted 26 Mar in reply to Hristo Valyavicharski Link to this post

    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.
  7. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 31 Mar Link to this post

    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.
  8. jwhitley
    jwhitley avatar
    41 posts
    Member since:
    Oct 2006

    Posted 31 Mar in reply to Hristo Valyavicharski Link to this post

    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.

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017