Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by dgrimm on Dec 24, 2009 10:05
open dhtmlx forum
dhtmlSheduler repeating appointments and Agenda feature not working together.

The Agenda tab / feature will not work with the Repeating appointments feature.
The below code works so long as you do not create a recurring appointment. If you create a repeating appointment and click on the Agenda tab, the browser hangs...IE message: "Stop running this script...A script on this page is causing IE to run slowly..."

* You can add a single day appointment and it shows in the agenda
* If you add a repeat for 5 days, the Agenda does not hang, but the 5 appointment do not show in the agenda
*If you add a repeat without an endpoint...browser hangs.

Hope there is a solution...
Thanks,


    <link rel="stylesheet" href="../_globalClasses/dhtmlxScheduler2/codebase/dhtmlxscheduler.css" type="text/css" title="no title" charset="utf-8">
    <script src="../_globalClasses/dhtmlxScheduler2/codebase/dhtmlxscheduler.js" type="text/javascript" charset="utf-8"></script>

    <link rel="stylesheet" href="../_globalClasses/dhtmlxScheduler2/codebase/ext/dhtmlxscheduler_ext.css" type="text/css" title="no title" charset="utf-8">
    <script src="../_globalClasses/dhtmlxScheduler2/codebase/ext/dhtmlxscheduler_agenda_view.js" type="text/javascript" charset="utf-8"></script>
    <script src="../_globalClasses/dhtmlxScheduler2/codebase/ext/dhtmlxscheduler_year_view.js" type="text/javascript" charset="utf-8"></script>
    
    <script src="../_globalClasses/dhtmlxScheduler2/codebase/ext/dhtmlxscheduler_recurring.js" type="text/javascript" charset="utf-8"></script>

    <link rel="stylesheet" href="../_globalClasses/dhtmlxScheduler2/codebase/ext/dhtmlxscheduler_recurring.css" type="text/css" title="no title" charset="utf-8">

<script type="text/javascript" charset="utf-8">
    function init() {
        scheduler.config.xml_date="%Y-%m-%d %H:%i";        
        scheduler.config.details_on_create=true;
        scheduler.config.details_on_dblclick=true;
        scheduler.init('scheduler_here',null,"month"); // agenda,day,week
        scheduler.load("events_rec.php?uid="+scheduler.uid());
        var dp = new dataProcessor("events_rec.php");
        dp.init(scheduler);
    }
</script>

<body onload="init();">
    <div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
        <div class="dhx_cal_navline">
            <div class="dhx_cal_prev_button"> </div>
            <div class="dhx_cal_next_button"> </div>
            <div class="dhx_cal_today_button"></div>
            <div class="dhx_cal_date"></div>
            <div class="dhx_cal_tab" name="day_tab" style="right:360px;"></div>
            <div class="dhx_cal_tab" name="week_tab" style="right:290px;"></div>
            <div class="dhx_cal_tab" name="month_tab" style="right:220px;"></div>
            <div class="dhx_cal_tab" name="year_tab" style="right:150px;"></div>
     <!-- -->
         <div class="dhx_cal_tab" name="agenda_tab" style="right:80px;"></div>
        </div>
        <div class="dhx_cal_header">
        </div>
        <div class="dhx_cal_data">
        </div>        
    </div>
</body>

Answer posted by dhxSupport on Dec 28, 2009 02:03
This is known incompatibility. Agenda view extension will not work with recurring events (recurring events without end-date produces infinite list of oncoming events). We are working to fix it.