フルカレンダーでイベントを表示するのに問題があります。誰か助けてくれませんか?ここでデータベースに終了日を導入するまで、正常に機能していました。カレンダーから削除しようとしましたが、まだ機能しません。
mvc コントローラーから返された json データをバインドしようとしています。Json は正常に見え、次のようになります。
{ id = 1, title = "XYZ Apple", start = "2013-10-02T00:00:00.0000000", end = "2013-10-06T00:00:00.0000000", allDay = true }
{ id = 3, title = "XYZ Apple", start = "2013-10-03T00:00:00.0000000", end = "2013-10-10T00:00:00.0000000", allDay = true }
{ id = 4, title = "XYZ Apple", start = "2013-10-04T00:00:00.0000000", end = "2013-10-07T00:00:00.0000000", allDay = true }
{ id = 5, title = "XYZ Apple", start = "2013-10-07T00:00:00.0000000", end = null, allDay = true }
{ id = 6, title = "XYZ Apple", start = "2013-10-08T00:00:00.0000000", end = "2013-10-08T00:00:00.0000000", allDay = true }
{ id = 7, title = "XYZ Apple", start = "2013-10-09T00:00:00.0000000", end = "2013-10-15T00:00:00.0000000", allDay = true }
カスタムエラーを返すロード時:
「イベントの取得中にエラーが発生しました!」
これは私が持っているカレンダーです
var calendar = {
header: {
left: 'prev,next',
center: 'title',
right: 'today, basicDay,basicWeek,month'
},
defaultView: 'month',
buttonText: {
today: 'Today',
day: 'Day',
week: 'Week',
month: 'Month',
prev: 'Prev',
next: 'Next',
},
weekends: true,
editable: true,
events: {
url: 'FullCalendar/GetEvents',
color: 'yellow',
error: function () {
alert('Error while Getting events!');
}
}
};
myCalendar.fullCalendar(calendar);