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

Recurring events not working correctly

3 Answers 75 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 08 May 2009, 08:15 PM
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!

3 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 11 May 2009, 11:38 AM
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.
0
Matt
Top achievements
Rank 1
answered on 11 May 2009, 12:29 PM
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.
0
Peter
Telerik team
answered on 12 May 2009, 09:49 AM
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.
Tags
Scheduler
Asked by
Matt
Top achievements
Rank 1
Answers by
Peter
Telerik team
Matt
Top achievements
Rank 1
Share this question
or