In my previous article i explain about how to add SharePoint list view in page
We are going to add default calendar view in ASPX page. I tried to use html normal view, but it's not showing calendar. after googling i found the solution. For calendar we have to change the Type and add Scope, RecurrenceRowset.
In Elements we have to add default calendar view , add the following code in Elements.
<File Path="Module1\Calendar.aspx" Url="Calendar.aspx" Type="GhostableInLibrary">
<View List="Lists/Calendar" BaseViewID="2" WebPartZoneID="WPListcalendarView" WebPartOrder="1" DefaultView="TRUE" DisplayName="Calendar" Name="Calendar" Type="CALENDAR" Scope="Recursive" RecurrenceRowset="TRUE">
</View>
</File>
ASPX page have to call the calendar webpart, add the following code in ASPX page.
<asp:Content ID="Content" ContentPlaceHolderID="PlaceHolderMain" runat="server">
<WebPartPages:WebPartZone ID="WPZMOC" runat="server">
<ZoneTemplate></ZoneTemplate>
</WebPartPages:WebPartZone>
</asp:Content>
SharePoint Online Real Time Training Contact: JLAKSHMITULASI@GMAIL.COM
Add SharePoint ListView in Page
Add SharePoint ListView in Page
We are going to add default calendar view in ASPX page. I tried to use html normal view, but it's not showing calendar. after googling i found the solution. For calendar we have to change the Type and add Scope, RecurrenceRowset.
In Elements we have to add default calendar view , add the following code in Elements.
<File Path="Module1\Calendar.aspx" Url="Calendar.aspx" Type="GhostableInLibrary">
<View List="Lists/Calendar" BaseViewID="2" WebPartZoneID="WPListcalendarView" WebPartOrder="1" DefaultView="TRUE" DisplayName="Calendar" Name="Calendar" Type="CALENDAR" Scope="Recursive" RecurrenceRowset="TRUE">
</View>
</File>
ASPX page have to call the calendar webpart, add the following code in ASPX page.
<asp:Content ID="Content" ContentPlaceHolderID="PlaceHolderMain" runat="server">
<WebPartPages:WebPartZone ID="WPZMOC" runat="server">
<ZoneTemplate></ZoneTemplate>
</WebPartPages:WebPartZone>
</asp:Content>
SharePoint Online Real Time Training Contact: JLAKSHMITULASI@GMAIL.COM