DHTMLX Scheduler data is not rendering properly

Hi All,

I was using DHTMLX Scheduler in my project. Everything is working fine when creating new event and showing the event on screen properly. But when refreshing the page the events are not showing anything on the screen. I ll post here the XML config and my Index config for your clarification. Please help me to fix this issue.

XML

<% foreach (var myevent in Model) { %> ]]> ]]>
        <text><![CDATA[<%=          myevent.Description%>]]></text>

    </event>
<% } %>

Index

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”, new Date(), “month”);

    scheduler.load("/Admin/EventCalendar/Dat", function () {
        alert("data loaded");
    });

    var dp = new dataProcessor("/Admin/EventCalendar/Save");
    dp.init(scheduler);
    dp.setTransactionMode("POST", false);
}


<body onload="init()">
<div id="scheduler_here" class="dhx_cal_container" style="height: 1000px; width: 1075px">
    <div class="dhx_cal_navline">
        <div class="dhx_cal_prev_button">
            &nbsp;</div>
        <div class="dhx_cal_next_button">
            &nbsp;</div>
        <div class="dhx_cal_today_button">
        </div>
        <div class="dhx_cal_date">
        </div>
        <div class="dhx_cal_date">
        </div>
        <div class="dhx_minical_icon" id="dhx_minical_icon" onclick="show_minical()">
            &nbsp;</div>
        <div class="dhx_cal_tab" name="day_tab" style="right: 204px;">
        </div>
        <div class="dhx_cal_tab" name="week_tab" style="right: 140px;">
        </div>
        <div class="dhx_cal_tab" name="month_tab" style="right: 76px;">
        </div>
    </div>
    <div class="dhx_cal_header">
    </div>
    <div class="dhx_cal_data">
    </div>
</div>

When page load the JSON returns the XML data something like this.

        <event id="61">
           <start_date>12/06/2012 00:00:00</start_date>
           <end_date>12/11/2012 00:05:00</end_date>
           <text>New event</text>
        </event>

        <event id="62">
          <start_date>09/05/2012 00:00:00</start_date>
          <end_date>09/05/2012 00:05:00</end_date>
          <text>New event</text>
        </event>
       <event id="63">
          <start_date>09/05/2012 00:00:00</start_date>
          <end_date>09/05/2012 00:05:00</end_date>
          <text>New event</text>
       </event>
     </data>

Please let me know what i am doing wrong.

Thanks.

Hello,

Date format in XML doesn’t match your config option
scheduler.config.xml_date = “%Y-%m-%d %H:%i”;

Best regards,
Ilya

Thank you for the reply. Its working now.