Hi
How do you set up recurring events in asp.net MVP.
You need to configure server side , so it will provide in data xml and save back to DB 3 extra field
docs.dhtmlx.com/doku.php?id=dhtm … ntegration
This is enough for basic support of recurring events ( of course you will need to include dhtmlxscheduler_recurring.js on the client side )
Thanks, but I am still having trouble with getting it to work
The problem seems to be that it is not saving all the data correctly
if I save a normal event - rec_type, event_lenght and event_pid are all null
if I save a recurring event - rec_type is saved correctly but event_lenght and event_pid are both null
if I change an event - a new event is saved - event_pid is correct but rec_type and event_pid are null
I then get a RuntimeBinderException because of the null values
I have this in data.aspx
<%@ Page Language=“C#” Inherits=“System.Web.Mvc.ViewPage” ContentType=“text/xml” %>
<% foreach (var myevent in Model) { %>
<start_date>]]></start_date>
<end_date>]]></end_date>
]]>
<rec_type>]]></rec_type>
<event_lenght>]]></event_lenght>
<event_pid>]]></event_pid>
</event>
<% } %>
Server side logic need to check is that field empty or not.
Additional fields , which defines recurrency may absent for normal events - it is expected behavior of client side logic.