Reputation: 11340
I'm getting my data from ASP.NET MVC's controller using the following
$.getJSON('@Url.Action("GetHolidayLists", "Holiday")', null, function (result) {
alert(JSON.stringify(result));
holidayList = result;
});
This is what got alerted out:
[{"start":"/Date(1362139909000)/","title":"New Year's Day"},
{"start":"/Date(1364473601000)/","title":"Good Friday"},
{"start":"/Date(1376050863000)/","title":"National Day"},
{"start":"/Date(1387900800000)/","title":"Christmas Day"}]
And finally, this is how I bind the json to the calendar:
$('#calendar').fullCalendar({
events: holidayList
});
But nothing seems to be loaded onto the grid.
Upvotes: 0
Views: 1328
Reputation: 448
Perhaps you have the same issue as Graham Charles in this post:
FullCalendar won't bind to Json feed from ASP.NET MVC3 Action
Upvotes: 1