My tree view
<ejs-treeview id="TreeViewRoles" height="100%"> <e-treeview-fields dataSource="@Model.TreeViewModel" id="Id" parentId="ParentId" text="Name" hasChildren="HasChild" expanded="Expanded" htmlAttributes=""></e-treeview-fields> </ejs-treeview>
Actual Need to like this