*Urgent* How do open RadWindow From OnAppoinmentClick

2 posts, 0 answers
  1. Luffy
    Luffy avatar
    28 posts
    Member since:
    Jun 2011

    Posted 30 Jun 2011 Link to this post

    I have a urgent question to ask and i have problem doing it.

    I have a rescheduler with Appointment on it, when i click on the appointment i want it to open RadWindow to display more information. However, i have no idea how it can be done at the server side. I have tried doing client side but it doesnt appear too.



    <script type="text/javascript">
        function openwin() {
           
            var win = window.radopen('EventDetail.aspx', 'Details'); win.center();
         }

    </script>

           <telerik:RadWindowManager runat="server" ID="RadWindowManager1">
                <Windows>
                    <telerik:RadWindow runat="server" ID="Details" VisibleStatusbar="false" NavigateUrl="EventDetail.aspx"
                        Width="635px" Height="530px" AutoSize="false" Behaviors="Close,Move" ShowContentDuringLoad="false"
                        Modal="true">
                    </telerik:RadWindow>
                </Windows>
            </telerik:RadWindowManager>
                                                <telerik:RadScheduler ID="RadScheduler1" runat="server" 
                                                   AllowDelete="false" AllowInsert="false"   AllowEdit="False" DataDescriptionField="EventDesc"
                                                    DataEndField="EventEndTime" DataKeyField="EventID" OnClientAppointmentClick="openwin()"
                                                    DataSourceID="SqlDataSource1" DataStartField="EventStartTime" 
                                                    DataSubjectField="EventTitle" DayEndTime="23:59:00"
                                                    EditFormDateFormat="d/M/yyyy" EnableDescriptionField="True" Skin="Black" 
                                                    
                                                    style="z-index: 1; left: 210px; top: 34px; position: absolute; height: 425px; width: 861px" >
                                                    <AdvancedForm DateFormat="d/M/yyyy" />
                                                </telerik:RadScheduler>
  2. Plamen
    Admin
    Plamen avatar
    2959 posts

    Posted 01 Jul 2011 Link to this post

    Hi Sherman,

    We inspected the code and it seems that the problem is in the name of the event. It should be without the brackets at the end just like that: OnClientAppointmentClick="openwin".

    Here is the code that you need for code behind implementation as well:

    protected void RadScheduler1_AppointmentClick(object sender, SchedulerEventArgs e)
       {
           Details.VisibleOnPageLoad = true;
       }

    Hope this will help you.

    Greetings,
    Plamen Zdravkov
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top