<EjsTreeView TValue="StructureItem" ModelType="@modelType">
<TreeViewFieldsSettings TValue="StructureItem" Query="new ej.data.Query().addParams('ParentID','5')" Id="employeeID" Text="firstName" HasChildren="employeeID">
<EjsDataManager Url="/api/Default" Adaptor="Syncfusion.EJ2.Blazor.Adaptors.UrlAdaptor" CrossDomain="true"></EjsDataManager>
<TreeViewFieldChild TValue="StructureItem" Id="orderID" Text="firstName" ParentID="employeeID" Expanded="expanded">
<EjsDataManager Url="api/Child" Adaptor="Syncfusion.EJ2.Blazor.Adaptors.UrlAdaptor" CrossDomain="true"></EjsDataManager>
</TreeViewFieldChild>
</TreeViewFieldsSettings>
<TreeViewTemplates>
<NodeTemplate>
@{
var templateData = (@context as StructureItem);
<div>
<div class="treeviewdiv">
<div style="float:left">
<span class="treeName">@templateData.FirstName</span>
</div>
</div>
</div>
}
</NodeTemplate>
</TreeViewTemplates>
</EjsTreeView> |