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

Appointment Window not closing

3 Answers 93 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Susan
Top achievements
Rank 1
Susan asked on 31 Aug 2010, 01:05 AM
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

 

3 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 02 Sep 2010, 12:14 PM
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
0
Jayesh Goyani
Top achievements
Rank 2
answered on 06 Sep 2010, 07:48 AM
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();
    {


0
Susan
Top achievements
Rank 1
answered on 02 Oct 2010, 02:28 PM
this was answered in another post. it is working now.
Tags
Scheduler
Asked by
Susan
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Jayesh Goyani
Top achievements
Rank 2
Susan
Top achievements
Rank 1
Share this question
or