We have a Task List sorted and organized with some hierarchy. We are trying to show it in a custom webpart. Unfortunately, I could not show it as it is in a All Items View.
Task1SubTask11SubTask12Task2Task3SubTask31SubTask32SubTask33I got this schema xml from the view
<ViewType="HTML"DisplayName="XXXX"Url="/sites/YYY/Calendar.aspx"Level="1"BaseViewID="1"ContentTypeID="0x"ImageUrl="/_layouts/15/images/issuelst.png?rev=47">
<ViewFields><FieldRefName="LinkTitle"/><FieldRefName="Body"/><FieldRefName="PercentComplete"/><FieldRefName="StartDate"/><FieldRefName="metProgressPlanned"/></ViewFields>
<ViewData><FieldRefName="DueDate"Type="TimelineDueDate"/><FieldRefName="PercentComplete"Type="StrikeThroughPercentComplete"/></ViewData><Query><OrderBy><FieldRefName="metProgressPlanned"/></OrderBy></Query><AggregationsValue="Off"/><RowLimitPaged="TRUE">100</RowLimit><MobileMobileItemLimit="3"MobileSimpleViewField="LinkTitle"/><ToolbarType="Standard"/><JSLink>hierarchytaskslist.js</JSLink><XslLinkDefault="TRUE">main.xsl</XslLink></View>
Unfortunately, when I execute this code. I do not have the same result as the page.
Why? What can I do to have the same view as the aspx page or the view? With indentation and hierarchy.