I am developing SharePoint hosted app. In that I have to use SPTreeView
to display root site content in the Tree view form. For the data source I have to use SPHierarchyDataSourceControl
. But I don't know how to use this in my SharePoint hosted app.
My Questions are:
- How can I set the
RootWebId
of theSPHierarchyDataSourceControl
in javascript? - How can I use these controls in my app?
- Is there any other ways(like using JQuery or other controls) to achieve this?