Code to Show and Appointment in the Edit Form

3 posts, 0 answers
  1. Dan Lehmann
    Dan Lehmann avatar
    103 posts
    Member since:
    May 2011

    Posted 01 Jul 2011 Link to this post

    Hi,
    Is there to cause a certain appointment to open in the Advanced Form onPageLoad?  Either with the codebehind or with javascript will work. If nothing else, Is there a way to simulate a click on an appointment in the collection?

    Thanks,
    Dan
  2. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 04 Jul 2011 Link to this post

    Hi Dan Lehmann,

    As I understand you need to show the advanced insert form by clicking on a button that is outside of the RadScheduler. If so you can use the ShowAdvancedInsertForm method in the click handler of the button, e.g.:
    protected void Button2_Click(object sender, ImageClickEventArgs e)
            {
                RadScheduler1.ShowAdvancedInsertForm(DateTime.Now);
            }

    Please let me know whether I got your requirement.

    Greetings,
    Veronica Milcheva
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dan Lehmann
    Dan Lehmann avatar
    103 posts
    Member since:
    May 2011

    Posted 05 Jul 2011 Link to this post

    Almost,
    I need the Edit form not the Insert form. I found the api method and got it to work with:
    RadScheduler1.ShowAdvancedEditForm(Scheduler.Appointments.FindByID(AptID))

    Thanks,
    Dan
Back to Top