Hi,
Same problem here : in a C#/ASP.NET (3.5) project, I use the Month Calendar, and when I focus an event (or when I click on it), I obtain an "InvalidCastException" in the file JsonData.cs :
public static explicit operator String (JsonData data)
{
if (data == null)
{
return null;
}
switch (data.type)
{
case JsonType.Int:
return data.inst_int.ToString();
case JsonType.Long:
return data.inst_long.ToString();
case JsonType.Double:
return data.inst_double.ToString();
case JsonType.String:
return data.inst_string;
case JsonType.Boolean:
return data.inst_boolean.ToString();
case JsonType.None:
case JsonType.Object:
case JsonType.Array:
default:
throw new InvalidCastException("Instance of JsonData can't be cast to String.");
}
}
because the JSon data parameter is an Array.
I get this error with the DayPilot 7.2.2765.0, and also in the DayPilot solution provided.
When I used the Demo version 7.1.2739.1 in my project, I didn't have the error...