Expand all the events in Calendar View on page load SharePoint
The method to expand all the events in Calendar View on load using Content Editor WebPart. You should add this code. You should copy and paste it to html file, save this file to document library and set its path into the settings of CEWP.
_spBodyOnLoadFunctionNames.push('changeCalendarEventLinkIntercept');
//Expand all the calendar events
function changeCalendarEventLinkIntercept()
{
var OldCalendarNotify4a = SP.UI.ApplicationPages.CalendarNotify.$4b;
SP.UI.ApplicationPages.CalendarNotify.$4b = function ()
{
OldCalendarNotify4a();
changeCalendarEventLinks();
}
}
function changeCalendarEventLinks()
{
//expand all
$("a[evtid='expand_collapse']").each(function(){
$(this)[0].click();
});
}
How to Write Formatted Code in Teams Chat
A Hidden Visual Studio Trick: Execute Selected Code with double Ctrl+E
What do to with Zone.Identifier files after importing a WSL machine and copying data