To open Custom form in Radwindow. On appointment inserting.

2 posts, 0 answers
  1. Malkesh
    Malkesh avatar
    1 posts
    Member since:
    Apr 2012

    Posted 24 May 2012 Link to this post

    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
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 24 May 2012 Link to this post

    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.
Back to Top