Error message can't be catched in Edit Form

6 posts, 0 answers
  1. Lili
    Lili avatar
    18 posts
    Member since:
    Jun 2012

    Posted 08 Aug 2012 Link to this post


    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
    }
  2. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 10 Aug 2012 Link to this post

    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.
  3. Lili
    Lili avatar
    18 posts
    Member since:
    Jun 2012

    Posted 10 Aug 2012 Link to this post

    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! 

     

  4. Plamen
    Admin
    Plamen avatar
    2939 posts

    Posted 15 Aug 2012 Link to this post

    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.
  5. Lili
    Lili avatar
    18 posts
    Member since:
    Jun 2012

    Posted 30 Aug 2012 Link to this post

    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

  6. Plamen
    Admin
    Plamen avatar
    2939 posts

    Posted 04 Sep 2012 Link to this post

    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.
Back to Top