Recurring events not working correctly

4 posts, 1 answers
  1. Matt
    Matt avatar
    66 posts
    Member since:
    Apr 2009

    Posted 08 May 2009 Link to this post

    http://www.sjmed.com/events/calendar/calendarview.aspx

    I'm running into trouble customizing the advanced templates.  The main thing I am running into is that the recurring events section isn't working.  I am following the tutorial on this subject.  I can get all the other fields to work, but the recurring events don't work.  I reverted back to a basic custom advanced form in the above link just to see if the recurring events work there, but they still don't.

    The above example only uses the AdvancedEditForm, AdvancedForm and SchedulerDefaultForm controls.

    Has anyone else had issues w/this?  Any help would be greatly appreciated!

  2. Answer
    Peter
    Admin
    Peter avatar
    6637 posts

    Posted 11 May 2009 Link to this post

    Hi Matt,

    Did you manage to fix the problem? I tested the url you provided, but recurring panel worked as expected.

    You can get a working demo of the customizing the advanced form example from here:
    http://www.telerik.com/support/kb/aspnet-ajax/scheduler/sample-project-of-the-customizing-the-advanced-template-example.aspx

    A common pitfall in this implementation is that people sometimes forget to handle the OnClientFormCreated event. Please, make sure that this is not the case:
    aspx:
    <script type="text/javascript">   
            //<![CDATA[
                function schedulerFormCreated(scheduler, eventArgs)
                {
                    var $ = $telerik.$;
                    var schedulerElement = scheduler.get_element();
                    var formElement = $("div.rsAdvancedEdit", schedulerElement);
                    
                    if (formElement.length == 1)
                    {
                        // Initialize the client-side object for the advanced form
                        var advancedTemplate = new window.SchedulerAdvancedTemplate(schedulerElement, formElement);
                        advancedTemplate.initialize();
                    }
                }
                
            //]]> 
            </script> 
              
            <telerik:RadScheduler runat="server" ID="RadScheduler1" Width="750px" SelectedDate="2007-03-30" 
                DayStartTime="08:00:00" DayEndTime="18:00:00" TimeZoneOffset="03:00:00" CustomAttributeNames="Description" 
                OnDataBound="RadScheduler1_DataBound" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound" 
                OnClientFormCreated="schedulerFormCreated"


    Best wishes,
    Peter
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Matt
    Matt avatar
    66 posts
    Member since:
    Apr 2009

    Posted 11 May 2009 Link to this post

    Hi Peter,

    Thank you so much for the advice.  What browser were you testing my form in?  I'm amazed that it worked?  It still wasn't working for me in IE7 or Firefox.  I added that script and onclientformcreated event and it works like a charm.  But I'm still curious as to how it worked for you w/o that script?!?

    Thank you for the help!

    BTW, would it be helpful to add that script to the "Customize the Advanced Template" tutorial?  I don't think that's in there anywhere.
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 12 May 2009 Link to this post

    Hello Matt,

    I have no scientific explanation of this either :).

    Thank you for your suggestion. We will add a note about the script in the online tutorial.


    All the best,
    Peter
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top