Hi,
I'm new to kendo and i was trying to display a treeView using the ASP MVC approach so i followed the exemple you provided :
var employees = from e in db.Employees
where (id.HasValue ? e.ReportsTo == id : e.ReportsTo == null)
select new
{
id = e.id,
Name = e.FirstName + " " + e.LastName,
hasChildren = e.Employees1.Any()
};
But what is the code inside the Employees1 property ? It should be a recursive method somehere ? Please provide the content of the model or give me more details to how make it work
Thanks for the help
I'm new to kendo and i was trying to display a treeView using the ASP MVC approach so i followed the exemple you provided :
var employees = from e in db.Employees
where (id.HasValue ? e.ReportsTo == id : e.ReportsTo == null)
select new
{
id = e.id,
Name = e.FirstName + " " + e.LastName,
hasChildren = e.Employees1.Any()
};
But what is the code inside the Employees1 property ? It should be a recursive method somehere ? Please provide the content of the model or give me more details to how make it work
Thanks for the help