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

*Urgent* How do open RadWindow From OnAppoinmentClick

1 Answer 47 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Luffy
Top achievements
Rank 1
Luffy asked on 30 Jun 2011, 02:51 PM
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>

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 01 Jul 2011, 11:27 AM
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.

Tags
Scheduler
Asked by
Luffy
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or