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

[Solved] RadScheduler Export only works when exporting to Office 2007

3 Answers 210 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 14 Feb 2008, 10:57 PM
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:

    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> 
                                                                    &nbsp;</td> 
                                                            </tr> 
                                                            <tr> 
                                                                <td class="style6">  
                                                                    &nbsp;</td> 
                                                                <td class="style5">  
                                                                    &nbsp;</td> 
                                                                <td> 
                                                                    &nbsp;</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> 
                                                        &nbsp;</td> 
                                                    <td> 
                                                        &nbsp;</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> 
                                                                    &nbsp;</td> 
                                                            </tr> 
                                                            <tr> 
                                                                <td class="style6">  
                                                                    &nbsp;</td> 
                                                                <td class="style5">  
                                                                    &nbsp;</td> 
                                                                <td> 
                                                                    &nbsp;</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> 
                                                        &nbsp;</td> 
                                                    <td> 
                                                        &nbsp;</td> 
                                                </tr> 
                                            </table> 
                                        </td> 
                                    </tr> 
                                </table> 
                            </div> 
                        </AdvancedEditTemplate> 
                     </telerik:RadScheduler> 
                    </telerik:RadAjaxPanel> 
 

Am I doing something wrong?

3 Answers, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 15 Feb 2008, 04:13 PM
Can anyone help me?
0
David
Top achievements
Rank 1
answered on 15 Feb 2008, 09:36 PM
We've done further testing and in some instances we have the same situation when exporting to outlook 2007.  It's hit or miss, really.  Some computers it works fine and some it doesn't.  My entire calendar implementation is as posted above.

I really would appreciate any and all help.  Thank you in advance.
0
T. Tsonev
Telerik team
answered on 18 Feb 2008, 08:05 AM
Hello David,

Thank you for reporting this issue and for taking the time to investigate it. Unfortunately, there is no official documentation for the iCalendar (RFC 2445) subset used by Outlook.

We will try to determine what is causing the problems if you send us some sample export files that fail. You can open a formal support ticket, if you are concerned with privacy.

Sincerely yours,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
David
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
T. Tsonev
Telerik team
Share this question
or