如何在.net mvc 4或5中创建树 [英] How to genarate Tree in .net mvc 4 or 5

查看:84
本文介绍了如何在.net mvc 4或5中创建树的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个父子关系表。模型是

公共类树{

public int Id {get; set;}

public string Name {get; set;}

public int ParentId {get; set;}

}

我怎样才能像树视图一样显示这种关系。 net mvc 4/5使用jquery。如果可以使用泛型生成树。

解决方案

这些可能会有所帮助 -

如何在MVC3中创建TreeView [ ^ ]

简单的TreeView实现 [ ^ ]

I have a parent child relation table.and the model is
public class Tree{
public int Id {get; set;}
public string Name {get; set;}
public int ParentId {get;set;}
}
how can i display this relation as like a tree view in .net mvc 4/5 using jquery .If it possible to generate the tree using generic.

解决方案

These might help -
How to Create TreeView in MVC3[^]
Simple TreeView implementation[^]


这篇关于如何在.net mvc 4或5中创建树的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆