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

Hyperlink to open Advanced Forms

3 Answers 74 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ilya
Top achievements
Rank 1
Ilya asked on 22 Sep 2011, 04:32 PM
I have created a custom appointment template which contains a hyperlink. is there a way to open an AdvancedEdit form by clicking on that hyperlink?

Thanks

3 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 23 Sep 2011, 09:24 AM
Hi Ilya,

Please, try the following code:
<script type="text/javascript">
 
       var flag = false;
 
       function EditAppointment(e) {
           flag = true;
       }
       function OnClientAppointmentClick(sender, args) {
           if (flag) {
               sender.editAppointmentWithConfirmation(args.get_appointment());
               flag = false;
           }
       }
   </script>
   <telerik:RadScheduler runat="server" ID="RadScheduler1" OnClientAppointmentClick="OnClientAppointmentClick">
       <AppointmentTemplate>
           <%#Eval("Subject") %>
           <hr />
           <a href="#" onclick="EditAppointment(event)">edit</a>
       </AppointmentTemplate>
   </telerik:RadScheduler>


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
0
Jayesh Goyani
Top achievements
Rank 2
answered on 23 Sep 2011, 09:36 AM
Hello,

  protected void btnAddAppointment_Click(object sender, EventArgs e)
    {
        RadScheduler1.ShowAdvancedInsertForm(RadScheduler1.SelectedDate);
    }


Thanks
Jayesh Goyani
0
Ilya
Top achievements
Rank 1
answered on 23 Sep 2011, 02:06 PM
Ok, it works great. Thanks
Tags
Scheduler
Asked by
Ilya
Top achievements
Rank 1
Answers by
Peter
Telerik team
Jayesh Goyani
Top achievements
Rank 2
Ilya
Top achievements
Rank 1
Share this question
or