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

To open Custom form in Radwindow. On appointment inserting.

1 Answer 46 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Malkesh
Top achievements
Rank 1
Malkesh asked on 24 May 2012, 01:22 PM
Hello Telerik Team,

    I want to open a one insert form on doubleclick of the time slot say appointment. Is there any server side events which make it possible.
What i done is calling the radwindow from client side and try to open the page in it.

<telerik:RadScheduler ID="RadScheduler1" runat="server" DataDescriptionField="status"
            Height="500px" Width="1000px" DataEndField="endTime" DataKeyField="bike_ID" DataSourceID="SqlDataSource1"
            DataStartField="startTime" DataSubjectField="subject" EnableDescriptionField="True"
            OnClientAppointmentInserting="onAppointmentInserting" Skin="Vista" StartEditingInAdvancedForm="False"
            StartInsertingInAdvancedForm="true">


<script type="text/javascript">

        function onAppointmentInserting(sender, eventArgs) {
           
            var _slot = eventArgs.get_targetSlot();
     var oWindowAppnt=$find("<%= RadWindowAppointment.ClientID %>");
      oWindowAppnt.setSize(510, 490);
     var _startTime = _slot.get_startTime().format("MMM dd, yyyy HH:mm:ss");
     var _endTime = _slot.get_endTime().format("MMM dd, yyyy HH:mm:ss");
      var _employeeID = _slot.get_resource().get_key();
     oWindowAppnt.setUrl("appointment.aspx?appid=0&ST="+_startTime +"&ET="+_endTime);
    oWindowAppnt.add_close(OnClientCloseAppointment);
    oWindowAppnt.set_modal(true);
    oWindowAppnt.set_showContentDuringLoad(false);
    oWindowAppnt.set_visibleTitlebar(false);
    oWindowAppnt.set_visibleStatusbar(false);
    oWindowAppnt.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close +   Telerik.Web.UI.WindowBehaviors.Move);
    oWindowAppnt.show();
    eventArgs.set_cancel(true);  
  return false;
   }

     <telerik:RadWindow ID="RadWindowAppointment" runat="server"  >
    </telerik:RadWindow>

    </script>


can you please suggest any example or how to proceed the same.  I attached my appoitment .aspx page with this.

Thanks,
Malkesh

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 24 May 2012, 10:33 PM
Hello Malkesh,

Please, see this forum post and let me know if you have further questions.

Kind regards,
Peter
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
Malkesh
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or