Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
95
WebScheduleInfo_ActivityDialogOpening no longer working with 2009 vol 2
posted

We recently upgraded a project to asp.net advantage 2009 vol 2, and have run into a few issues with existing code...

Namely, I seem to be unable to catch ActivityDialogOpening from a day view (the same thing seems to work from a week view and month view of the same schedule).  It was working fine in the previous version (8.x)

 

Script:

<script type="text/javascript" id="igClientScript">
            <!--

            function WebScheduleInfo_ActivityDialogOpening(oScheduleInfo, oEvent, oDialog, oActivity) {
                //Add code to handle your event here.
                var eventid = oActivity.getDataKey();
                if (null !== eventid) {
                    oEvent.cancel = true;
                    window.location = "Student/CalendarRouter.aspx?CalendarId=" + eventid;
                }
                else {
                    oEvent.cancel = true;
                }
            }
            // -->
        </script>

 

Page:

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <div style="float:left; margin-right:20px; height:350px; width:450px; border:solid 1px #CCCCCC" >
                        <div style="font-family:Verdana; font-size:small; color:#71B8FF; border-bottom:solid 1px #CCCCCC; padding-left: 2px">Schedule for today</div>
                        <igsch:WebScheduleInfo runat="server" ID="WebScheduleInfo" >
                            <ClientEvents ActivityDialogOpening="WebScheduleInfo_ActivityDialogOpening" />
                        </igsch:WebScheduleInfo>
                        <igsch:WebDayView ID="calendar" runat="server" WebScheduleInfoID="WebScheduleInfo" Height="77%" Width="450px" BorderStyle="None"
                              VisibleDays="1" DayHeaderFormatString="ddd, MMM, d" EnableAppStyling="True" StyleSetName="RedPlanet" StyleSetPath="styles"
                              EnableActivityMoving="false" EnableActivityResizing="false" EnableAutoActivityDialog="true">
                              <ActivityHoverStyle Cursor="Hand" />
                        </igsch:WebDayView>
                    </div>
                </ContentTemplate>
            </asp:UpdatePanel>

 

Any help?

Parents
No Data
Reply
  • 95
    posted

    Still looking for a solution here... we have a supported account, but apparently it is linked to our team leader, who isn't actually the developer (me!).

Children