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
Can you send a sample project, so we can review your code?
Thanks.
Regards,
Hristo Valyavicharski
Telerik
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;
}
}
ConfigurationManager.AppSettings[
"TheUser"
],
Try to put your email. Regards,
Hristo Valyavicharski
Telerik
Regards,
Hristo Valyavicharski
Telerik
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.