Question

I want to retrieve some data about each item in a Calendar, but I can't find ctx.ListData inside Calendar view.

Is this a bug in SharePoint?

Was it helpful?

Solution

No idea how to term it properly but I suppose that the way Microsoft has offered it to us.

Another thing we can not apply CSR for calendar view also. In any other view, we can apply CSR and get items using ctx.ListData.Row.

So if it is your must requirement, then now consider REST or JSOM to get all items. For REST API, following is the end-point.

"/_api/lists/getbytitle('Name of the calendar list')/items"
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top