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

How to I open my custom aspx page from the Scheduler while creating/editing of appointments including from the context menu as well??

2 Answers 45 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Burepalli V S Rao
Top achievements
Rank 1
Burepalli V S Rao asked on 24 Mar 2015, 10:11 PM


Hi,

I am using this control in my project, for creating the
appointment I am using my custom aspx page. For the new appointment/from the
menu option as well I am unable to call my custom aspx page. But during the
edit I am able to call my aspx page.

So, how do I open my custom aspx page both on new
appointment creation/from the context menu as well?

For achieving the above I try to use the below events but
there are not firing why??

<telerik:RadScheduler runat="server" ID="Scheduler" SelectedView="MonthView"

            FirstDayOfWeek="Monday" LastDayOfWeek="Friday" OverflowBehavior="Auto" DayEndTime="20:00:00"

            DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentID"

             Height=""StartEditingInAdvancedForm="false"

             Skin="Outlook"            OnClientAppointmentClick="OnClientAppointmentClick" OnClientAppointmentDoubleClick="OnClientAppointmentDoubleClick" OnClientAppointmentContextMenuItemClicked="ClientAppointmentContextMenuItemClicked" >

            <AdvancedForm Modal="false"></AdvancedForm>

            <WeekView ShowResourceHeaders="false" />

            <TimelineView UserSelectable="false" />

            <MonthView UserSelectable="True" />

            <TimeSlotContextMenuSettings EnableDefault="true"></TimeSlotContextMenuSettings>

            <AppointmentContextMenuSettings EnableDefault="true"></AppointmentContextMenuSettings>

        </telerik:RadScheduler>

 

And my javascript is

function OnClientAppointmentDoubleClick(sender, eventArgs) {

             try{

                 alert('Test');

                 var win = window.open('abc.aspx', 'Details');

                 win.center();

             } catch (e) {

                 alert(e.message);

             }

         }

         function ClientAppointmentContextMenuItemClicked(sender, args) {

             try {

                 alert('Test');

                 var win = window.open('abc.aspx', 'Details');

                 win.center();

             } catch (e) {

                 alert(e.message);

             }

         }

Thanks

2 Answers, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 27 Mar 2015, 03:08 PM
Hi Burepalli,

You can use RadWindow to load external page:

<telerik:RadScheduler ID="RadScheduler1" runat="server" OnAppointmentInsert="RadScheduler1_AppointmentInsert"
    OnClientAppointmentDoubleClick="OnClientAppointmentDoubleClick"
    SelectedView="DayView"
    OnClientTimeSlotClick="onClientTimeSlotClick"
    DataDescriptionField="Description" DataEndField="End" DataKeyField="ID" DataRecurrenceField="RecurrenceRule"
    DataRecurrenceParentKeyField="RecurrenceParentID" DataReminderField="Reminder" DataSourceID="SqlDataSource1"
    DataStartField="Start" DataSubjectField="Subject" Height="">
</telerik:RadScheduler>
 
<telerik:RadWindow ID="RadWindow1" runat="server" Width="450px" Height="450px" NavigateUrl="http://www.telerik.com">
</telerik:RadWindow>

function onClientTimeSlotClick(sender, args) {
    var radwindow = $find('<%=RadWindow1.ClientID %>');
    radwindow.show();
}

I hope this helps.

Regards,
Hristo Valyavicharski
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Burepalli V S Rao
Top achievements
Rank 1
answered on 01 Apr 2015, 01:59 PM
Thanks!!!!!!!!!!!!
Tags
Scheduler
Asked by
Burepalli V S Rao
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Burepalli V S Rao
Top achievements
Rank 1
Share this question
or