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

3 posts, 0 answers
  1. Burepalli V S Rao
    Burepalli V S Rao avatar
    23 posts
    Member since:
    Oct 2009

    Posted 24 Mar 2015 Link to this post



    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. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 27 Mar 2015 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Burepalli V S Rao
    Burepalli V S Rao avatar
    23 posts
    Member since:
    Oct 2009

    Posted 01 Apr 2015 in reply to Hristo Valyavicharski Link to this post

    Thanks!!!!!!!!!!!!
Back to Top