Collect All Site and Sub Site with content
Using <SharePoint:SPTreeView>
<div class="ms-quicklaunchouter" runat="server">
<div class="ms-treeviewouter">
<SharePoint:SPRememberScroll runat="server"
id="RememberScroll1"
onscroll="javascript:_spRecordScrollPositions(this);"
style="width: 220px;">
<Sharepoint:SPTreeView runat="server"
id="TreeView1"
ShowLines="false"
DataSourceId="TreeViewDataSource1"
ExpandDepth="0"
SelectedNodeStyle-CssClass="ms-tvselected"
NodeStyle-CssClass="ms-navitem"
NodeStyle-HorizontalPadding="2"
SkipLinkText=""
NodeIndent="8"
ExpandImageUrl="/_layouts/images/tvclosed.png"
ExpandImageUrlRtl="/_layouts/images/tvclosedrtl.png"
CollapseImageUrl="/_layouts/images/tvopen.png"
CollapseImageUrlRtl="/_layouts/images/tvopenrtl.png"
NoExpandImageUrl="/_layouts/images/tvblank.gif"
NodeWrap="True">
</Sharepoint:SPTreeView>
</Sharepoint:SPRememberScroll>
</div>
</div>
<SharePoint:SPHierarchyDataSourceControl runat="server"
id="TreeViewDataSource1"
RootContextObject="Web"
ShowFolderChildren="true"
IncludeDiscussionFolders="false"/>
Using <SharePoint:SPTreeView>
<div class="ms-quicklaunchouter" runat="server">
<div class="ms-treeviewouter">
<SharePoint:SPRememberScroll runat="server"
id="RememberScroll1"
onscroll="javascript:_spRecordScrollPositions(this);"
style="width: 220px;">
<Sharepoint:SPTreeView runat="server"
id="TreeView1"
ShowLines="false"
DataSourceId="TreeViewDataSource1"
ExpandDepth="0"
SelectedNodeStyle-CssClass="ms-tvselected"
NodeStyle-CssClass="ms-navitem"
NodeStyle-HorizontalPadding="2"
SkipLinkText=""
NodeIndent="8"
ExpandImageUrl="/_layouts/images/tvclosed.png"
ExpandImageUrlRtl="/_layouts/images/tvclosedrtl.png"
CollapseImageUrl="/_layouts/images/tvopen.png"
CollapseImageUrlRtl="/_layouts/images/tvopenrtl.png"
NoExpandImageUrl="/_layouts/images/tvblank.gif"
NodeWrap="True">
</Sharepoint:SPTreeView>
</Sharepoint:SPRememberScroll>
</div>
</div>
<SharePoint:SPHierarchyDataSourceControl runat="server"
id="TreeViewDataSource1"
RootContextObject="Web"
ShowFolderChildren="true"
IncludeDiscussionFolders="false"/>
Thank you saravanan jayaraman !
ReplyDeleteVery Useful !! :)
Thank you saravanan jayaraman !
ReplyDeleteVery Useful !! :)