This question is locked. New answers and comments are not allowed.
In my project, I have a TaxonomyTeeNode class. The class has some data members and a list of child nodes. I want to recurse on the root element of this class and transform it to an MVC Tree. I can't figure out how to do this. Please help.
public Class TaxonomyTreeNode
{
public string CatName { get; set;}
public string CatId { get; set; }
//...some other node properties
public IEnumerable<TaxonomyTreeNode> childCats { get; set; }
}
The root TaxonomyTreeNode is a property of the model
public Class TaxonomyTreeNode
{
public string CatName { get; set;}
public string CatId { get; set; }
//...some other node properties
public IEnumerable<TaxonomyTreeNode> childCats { get; set; }
}
The root TaxonomyTreeNode is a property of the model