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

Error message can't be catched in Edit Form

5 Answers 50 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lili
Top achievements
Rank 1
Lili asked on 08 Aug 2012, 04:36 PM

Hello Telerik team, please help with below. Thanks!
I have a question about catch error message on radscheduler Edit form when update a single appointment (RecurrenceState is Exception) in RecurrenceExceptionCreated block:
protected void RadScheduler1_RecurrenceExceptionCreated(object sender, Telerik.Web.UI.RecurrenceExceptionCreatedEventArgs e)

{

.........
else          / / catch ovelap
e.Cancel = true;       
  Label overLapMessage= (Label)((RadScheduler)sender).Controls[1].Controls[0].FindControl("errMessage");
  errMessage.Text = "A scheduling conflict has occurred.";
}
After click Save button, the Edit Form go away.

But I can catch the message on Edit Form in update block for appointment that is NotRecurring.

 

 

protected void RadScheduler1_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)

 

{

same code as above
}

5 Answers, 1 is accepted

Sort by
0
Kalina
Telerik team
answered on 10 Aug 2012, 01:54 PM
Hello Lili,

Could you please explain the scenario that you implement in more details?
Do you use RadScheduler for ASP.NET AJAX in a custom VisualWebPart or you use the TelerikSPRadSchedulerWebPart?
How do you populate the control with data?

Greetings,
Kalina
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
Lili
Top achievements
Rank 1
answered on 10 Aug 2012, 08:30 PM
I use  RadScheduler for ASP.NET AJAX in a custom <AdvancedEditTemplate>. Please take a look attached image. I can get the error message in update block. but can't catch the error messge for update appointment that is  Exception(RecurrenceState is Exception). That means when update a single appiontment from a recurrence appointment, the code go to block:
protected void RadScheduler1_RecurrenceExceptionCreated(object sender, Telerik.Web.UI.RecurrenceExceptionCreatedEventArgs e)

 

{

..........
}

 

Thanks! 

 

0
Plamen
Telerik team
answered on 15 Aug 2012, 01:33 PM
Hello,

Unfortunately it is still not clear enough what is not working properly. Would you please provide some more information what exactly should we change in the Advanced From on-line demo code in order to achieve the same error or unusual behavior at our side. This way we will be able to inspect that issue and be more helpful with solving it. 

All the best,
Plamen
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
Lili
Top achievements
Rank 1
answered on 30 Aug 2012, 09:04 PM
Hello Telerik team:
Thanks for reply. I found a demo url in here: 

http://demos.telerik.com/aspnet-ajax/scheduler/examples/limitconcurrentappointments/defaultcs.aspx#
that shows the overlap message in Navigation bar if update an appointment to occupied time slot. I need the message to show on the Edit Appointment form top after click Save button.(The Edit form should still shows there to let user select different date or time, unless user click Cancel button, then go away) Please see attached image. Please let me know you can change the code to do this.(update appointment must be an Exception appointment.)

Thanks a lot.

Lili

0
Plamen
Telerik team
answered on 04 Sep 2012, 01:00 PM
Hello Lili,

 
We inspected the issue once again and it seems that this is a limitation of RadScheduler and when the RecurrenceExceptionCreated event is canceled the reset exception event is thrown and the advanced form should be hiding. Please excuse us for this limitation of our control.

Greetings,
Plamen
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.
Tags
General Discussions
Asked by
Lili
Top achievements
Rank 1
Answers by
Kalina
Telerik team
Lili
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or