Appointment Window not closing

4 posts, 0 answers
  1. Susan
    Susan avatar
    137 posts
    Member since:
    Jul 2007

    Posted 30 Aug 2010 Link to this post

    I have a couple of problems that I cannot figure out.

    1. When editing an appointment, the advance form is displayed. If I make changes to the form and click 'Save', I handle the updates to SQL with the following. This updates my database, but the window does not close. How do I get the modal window to close?

     

    Private Sub UpdateButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles UpdateButton.Click

     

     

    Dim AppointmentBE as New AppointmentBE

     

     

    Dim ProspectToolDAL As New ProspectToolDAL

     

     

    Dim startDateString as String

     

     

    Dim startTimeString as String

     

     

    Dim endDateString as String

     

     

    Dim endTimeString as String

     

    AppointmentBE.Subject = SubjectText.Text

    AppointmentBE.AppointmentKey = Appointment.ID

    startDateString =

    "#" & Format(StartDate.SelectedDate, "MM/dd/yyyy")

     

    startTimeString = StartTime.SelectedDate.Value.ToShortTimeString &

    "#"

     

    AppointmentBE.StartTime =

    CDate(startDateString & " " & startTimeString)

     

    endDateString =

    "#" & Format(EndDate.SelectedDate, "MM/dd/yyyy")

     

    endTimeString = EndTime.SelectedDate.Value.ToShortTimeString &

    "#"

     

    AppointmentBE.EndTime =

    CDate(endDateString & " " & endTimeString)

     

     

     

    Dim appointmentKey as Int32 = ProspectToolDAL.SaveAppointment(AppointmentBE, "U")

     

     

    End Sub

    2. The second problem is once the window is closed (by clicking 'Cancel'), the appointment does not show it's new values. How can I get the scheduler to 'refresh' once the modal window is closed?

    Thanks,
    Susan

     

  2. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 02 Sep 2010 Link to this post

    Hello Susan,

    In the code I see you are using an UpdateButton_Click event. Are you using an Advanced Form Template to insert/edit appointments? Could you please send me the full code so I can inspect it and help you?

    Thank you!

    All the best,
    Veronica Milcheva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jayesh Goyani
    Jayesh Goyani avatar
    2732 posts
    Member since:
    May 2010

    Posted 06 Sep 2010 Link to this post

    hi Susan,

      <telerik:RadScheduler ID="radschClassScheduler" runat="server">
    <AdvancedEditTemplate>
                                <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm1" Mode="Edit" Subject='<%# Bind("Subject") %>'
                                    Description='<%# Bind("Description") %>' Start='<%# Bind("Start") %>' End='<%# Bind("End") %>'
                                    RecurrenceRuleText='<%# Bind("RecurrenceRule") %>' />...............etc...
                            </AdvancedEditTemplate>
     </telerik:RadScheduler>

     protected void radschClassScheduler_AppointmentUpdate(object sender, SchedulerCancelEventArgs e)
        {
                      radschClassScheduler.HideEditForm();
        {


  5. Susan
    Susan avatar
    137 posts
    Member since:
    Jul 2007

    Posted 02 Oct 2010 Link to this post

    this was answered in another post. it is working now.
Back to Top