Hello,
I have a problem with the RadScheduler. I currently have it set up to be able to export individual appointments and/or export all the appointments to Outlook. Whenever I try to export appointments to Outlook 2007, it works fine. They used to have different times when exported, but I have since fixed that. The problem is that when you click "Export All" and the machine the user is on runs office 2003, it only ends up exporting the first appointment in the calendar, not all the appointments. If the user is running on Office 2007, then it seems to work as intended.
My question is the following: Is this a known/common issue? If so, is there a quick fix for it?
This is the code attached to the Export All button:
This is the .aspx markup for the Scheduler, with it's Rad Ajax Panel (prometheus) around it:
Am I doing something wrong?
I have a problem with the RadScheduler. I currently have it set up to be able to export individual appointments and/or export all the appointments to Outlook. Whenever I try to export appointments to Outlook 2007, it works fine. They used to have different times when exported, but I have since fixed that. The problem is that when you click "Export All" and the machine the user is on runs office 2003, it only ends up exporting the first appointment in the calendar, not all the appointments. If the user is running on Office 2007, then it seems to work as intended.
My question is the following: Is this a known/common issue? If so, is there a quick fix for it?
This is the code attached to the Export All button:
| protected void Button2_Click(object sender, ImageClickEventArgs e) | |
| { | |
| TimeSpan currentOffset = TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now); | |
| WriteCalendar(RadScheduler.ExportToICalendar(RadScheduler1.Appointments, currentOffset)); | |
| } | |
This is the .aspx markup for the Scheduler, with it's Rad Ajax Panel (prometheus) around it:
| <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="100%" | |
| Width="100%" HorizontalAlign="NotSet"> | |
| <telerik:RadScheduler ID="RadScheduler1" runat="server" AllowDelete="True" | |
| AllowEdit="True" AllowInsert="True" DataEndField="End" | |
| DataKeyField="ID" DataStartField="Start" DataSubjectField="Subject" | |
| FirstDayOfWeek="Sunday" LastDayOfWeek="Saturday" | |
| SelectedView="DayView" DayEndTime="18:00:00" DayStartTime="08:00:00" | |
| Height="100%" | |
| onappointmentcommand="RadScheduler1_AppointmentCommand" | |
| OnAppointmentInsert="RadScheduler1_AppointmentInsert" | |
| OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" Skin="Office2007" | |
| StartEditingInAdvancedForm="False" OverflowBehavior="Scroll" | |
| Width="100%" onappointmentdelete="RadScheduler1_AppointmentDelete"> | |
| <AppointmentTemplate> | |
| <div style="width:100%;height:100%;background:#c6d7f7 url('Images/appointmentBG2.jpg') repeat-x ;position:absolute;margin:0 0 0 0"> | |
| <b><%# Eval("Subject") %></b> | |
| </div> | |
| <div style="position:absolute;top:1px;right:15px"> | |
| <asp:ImageButton ID="Button1" runat="server" | |
| AlternateText="Export to iCalendar" CommandName="Export" | |
| ImageUrl="~/Images/exportToOutlookImage.gif" | |
| OnClientClick="Export(this, event); return false;" ImageAlign="Top" /> | |
| </div> | |
| </AppointmentTemplate> | |
| <AdvancedInsertTemplate> | |
| <div style="position: relative; width: 100%; background: #E6E6E6; height: 100%; border: 1px solid #666666;"> | |
| <table align="center" class="style1" width="100%"> | |
| <tr> | |
| <td> | |
| <table align="center" cellpadding="0" cellspacing="0" class="style1" | |
| width="100%"> | |
| <tr> | |
| <td colspan="2" style="WIDTH: 100%;"> | |
| <div style="width:100%"> | |
| <div class="blueBox" | |
| style="margin-bottom: 5px; width:100%; position: static; bottom: 0px"> | |
| <asp:LinkButton ID="InsertButton" runat="server" ValidationGroup="appointmentSubmit" CausesValidation="true" CommandName="Insert"> | |
| <asp:Image ID="insertImage" runat="server" AlternateText="insert" | |
| ImageUrl="Images/ok.gif" /> | |
| </asp:LinkButton> | |
| <asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" | |
| CommandName="Cancel"> | |
| <asp:Image ID="Image2" runat="server" AlternateText="cancel" | |
| ImageUrl="Images/cancel.gif" /> | |
| </asp:LinkButton> | |
| </div> | |
| </div> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td align="center" colspan="2" width="100%"> | |
| <table class="style2" width="100%"> | |
| <tr> | |
| <td align="left" class="style6" width="100"> | |
| Subject</td> | |
| <td align="left" colspan="2"> | |
| <asp:TextBox ID="TitleTextBox" runat="server" Columns="20" Rows="1" | |
| Text='<%# Bind("Subject") %>' TextMode="SingleLine" Width="95%" ValidationGroup="appointmentSubmit"></asp:TextBox> | |
| <asp:RequiredFieldValidator | |
| ID="RequiredFieldValidator1" ControlToValidate="TitleTextBox" | |
| ValidationGroup="appointmentSubmit" EnableClientScript="true" runat="server" | |
| ErrorMessage="Please enter a subject"></asp:RequiredFieldValidator> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="style3" colspan="3"> | |
| <hr /> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td align="left" class="style6"> | |
| Start Time</td> | |
| <td align="left" class="style5" width="220"> | |
| <telerik:RadDateTimePicker ID="StartInput" Runat="server" | |
| Culture="English (United States)" SelectedDate='<%# Bind("Start") %>' | |
| TimeView-Interval="00:30:00"> | |
| <TimeView skin="Office2007" UseAccessibleHeader="False"> | |
| </TimeView> | |
| <DateInput Width="100%"> | |
| </DateInput> | |
| <DatePopupButton CssClass="radPopupImage_Default" /> | |
| <Calendar skin="Office2007" UseColumnHeadersAsSelectors="False" | |
| UseRowHeadersAsSelectors="False"> | |
| </Calendar> | |
| <TimePopupButton CssClass="radPopupImage_Default" /> | |
| </telerik:RadDateTimePicker> | |
| </td> | |
| <td align="left"> | |
| [ ] All Day Event</td> | |
| </tr> | |
| <tr> | |
| <td align="left" class="style6"> | |
| End Time</td> | |
| <td align="left" class="style5"> | |
| <telerik:RadDateTimePicker ID="EndInput" Runat="server" | |
| Culture="English (United States)" SelectedDate='<%# Bind("End") %>' | |
| TimeView-Interval="00:30:00"> | |
| <TimeView skin="Office2007" UseAccessibleHeader="False"> | |
| </TimeView> | |
| <DateInput Width="100%"> | |
| </DateInput> | |
| <DatePopupButton CssClass="radPopupImage_Default" /> | |
| <Calendar skin="Office2007" UseColumnHeadersAsSelectors="False" | |
| UseRowHeadersAsSelectors="False"> | |
| </Calendar> | |
| <TimePopupButton CssClass="radPopupImage_Default" /> | |
| </telerik:RadDateTimePicker> | |
| </td> | |
| <td> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="style6"> | |
| </td> | |
| <td class="style5"> | |
| </td> | |
| <td> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="style3" colspan="3"> | |
| <hr /> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td ;="" align="center" class="style4" colspan="3" valign="middle"> | |
| Notes will go here</td> | |
| </tr> | |
| </table> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td> | |
| </td> | |
| <td> | |
| </td> | |
| </tr> | |
| </table> | |
| </td> | |
| </tr> | |
| </table> | |
| </div> | |
| </AdvancedInsertTemplate> | |
| <AdvancedEditTemplate> | |
| <div style="position: relative; width: 100%; background: #E6E6E6; height: 100%; border: 1px solid #666666;"> | |
| <table align="center" class="style1" width="100%"> | |
| <tr> | |
| <td> | |
| <table align="center" cellpadding="0" cellspacing="0" class="style1" | |
| width="100%"> | |
| <tr> | |
| <td colspan="2" style="WIDTH: 100%;"> | |
| <div style="width:100%"> | |
| <div class="blueBox" | |
| style="margin-bottom: 5px; width:100%; position: static; bottom: 0px"> | |
| <asp:LinkButton ID="InsertButton" runat="server" CommandName="Update"> | |
| <asp:Image ID="insertImage" runat="server" AlternateText="update" | |
| ImageUrl="Images/ok.gif" /> | |
| </asp:LinkButton> | |
| <asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" | |
| CommandName="Cancel"> | |
| <asp:Image ID="Image2" runat="server" AlternateText="cancel" | |
| ImageUrl="Images/cancel.gif" /> | |
| </asp:LinkButton> | |
| </div> | |
| </div> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td align="center" colspan="2" width="100%"> | |
| <table class="style2" width="100%"> | |
| <tr> | |
| <td align="left" class="style6" width="100"> | |
| Subject</td> | |
| <td align="left" colspan="2"> | |
| <asp:TextBox ID="TitleTextBox" runat="server" Columns="20" Rows="1" | |
| Text='<%# Bind("Subject") %>' TextMode="SingleLine" Width="95%"></asp:TextBox> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="style3" colspan="3"> | |
| <hr /> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td align="left" class="style6"> | |
| Start Time</td> | |
| <td align="left" class="style5" width="220"> | |
| <telerik:RadDateTimePicker ID="StartInput" Runat="server" | |
| Culture="English (United States)" SelectedDate='<%# Bind("Start") %>' | |
| TimeView-Interval="00:30:00"> | |
| <TimeView skin="Office2007" UseAccessibleHeader="False"> | |
| </TimeView> | |
| <DateInput Width="100%"> | |
| </DateInput> | |
| <DatePopupButton CssClass="radPopupImage_Default" /> | |
| <Calendar skin="Office2007" UseColumnHeadersAsSelectors="False" | |
| UseRowHeadersAsSelectors="False"> | |
| </Calendar> | |
| <TimePopupButton CssClass="radPopupImage_Default" /> | |
| </telerik:RadDateTimePicker> | |
| </td> | |
| <td align="left"> | |
| [ ] All Day Event</td> | |
| </tr> | |
| <tr> | |
| <td align="left" class="style6"> | |
| End Time</td> | |
| <td align="left" class="style5"> | |
| <telerik:RadDateTimePicker ID="EndInput" Runat="server" | |
| Culture="English (United States)" SelectedDate='<%# Bind("End") %>' | |
| TimeView-Interval="00:30:00"> | |
| <TimeView skin="Office2007" UseAccessibleHeader="False"> | |
| </TimeView> | |
| <DateInput Width="100%"> | |
| </DateInput> | |
| <DatePopupButton CssClass="radPopupImage_Default" /> | |
| <Calendar skin="Office2007" UseColumnHeadersAsSelectors="False" | |
| UseRowHeadersAsSelectors="False"> | |
| </Calendar> | |
| <TimePopupButton CssClass="radPopupImage_Default" /> | |
| </telerik:RadDateTimePicker> | |
| </td> | |
| <td> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="style6"> | |
| </td> | |
| <td class="style5"> | |
| </td> | |
| <td> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="style3" colspan="3"> | |
| <hr /> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td ;="" align="center" class="style4" colspan="3" valign="middle"> | |
| Notes will go here</td> | |
| </tr> | |
| </table> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td> | |
| </td> | |
| <td> | |
| </td> | |
| </tr> | |
| </table> | |
| </td> | |
| </tr> | |
| </table> | |
| </div> | |
| </AdvancedEditTemplate> | |
| </telerik:RadScheduler> | |
| </telerik:RadAjaxPanel> | |
Am I doing something wrong?