如何在MVC3中使用JS TreeView [英] How to work with JS TreeView in MVC3
问题描述
我得到了一个要求,我需要在mvc3中使用JS TreeView。我已经下载了JsTree插件并附加到我的应用程序,我在谷歌搜索但我没有找不到任何与MVC3相关的帖子。现在我需要填充SQL Server数据库中存在的表数据,iam使用MVC3,EntityFramework4.0,任何人都可以引导我一个关于如何将表数据绑定到JsTreeView的示例,
我要填充的表结构(列)如下所示: -
EmpId Ename Designation Salary DeptNo
以上是我的表列名,我必须以这样的方式设计我的TreeView,使我的表的所有列都显示为TreeView的根成员,即当展开EmpId列时,所有id都应该显示等等......
可以任何一个帮助我提供一个与我的上述要求相关的例子..谢谢提前
谢谢
Ramu
您好b $ b
我建议您使用Codeplex的MVC控件工具打开项目它可以使用完全为您的目的,您可以看到并下载它遵循: ht tp://mvccontrolstoolkit.codeplex.com/wikipage?title = TreeView [ ^ ]
但是如果你想获得有关MVC3和Java Script的信息,你可以关注这些链接:
http://forums.asp.net/t/1765871.aspx/1?Jquery+ ajax + in + Asp + NET + MVC3 +区域 [ ^ ]
http://weblogs.asp.net/jigardesai/archive/2008/02/04/display-hierarchical-data-in -asp-net-mvc-framework.aspx [ ^ ]
http://mikehadlow.blogspot.com/2008/10/rendering-tree-view-using -mvc-framework.html [ ^ ]
http://wiki.asp.net/page.aspx/1699/json-with-jquery-mvc3/ [ ^ ]
最好的问候。
Hii to all,
I got an requirement that i need to work on JS TreeView in mvc3.I have downloaded JsTree plug in and attached to my application,I have searched in google but i didn''t find any post related MVC3. now i need to populate a table data present in a SQL Server database,iam using MVC3,EntityFramework4.0, can any one please guide me with an example on how to bind a table data to JsTreeView,
and the table structure(columns) which i want to populate is something like below:-
"EmpId Ename Designation Salary DeptNo"
The above are my table column names,i have to design my TreeView in such a way that all columns of my table should appear as root members of a TreeView,i.e when expand EmpId column all id should display and so on...
Can any one help me with an example related to my above requirement..thanks in advance
Thanks
Ramu
Hi
I suggest to you use the MVC controls tool open project from Codeplex it can use full for your purpose you can see and download it follow of :http://mvccontrolstoolkit.codeplex.com/wikipage?title=TreeView[^]
But if you want get information about MVC3 and Java Script you can follow these links:
http://forums.asp.net/t/1765871.aspx/1?Jquery+ajax+in+Asp+NET+MVC3+Areas[^]
http://weblogs.asp.net/jigardesai/archive/2008/02/04/display-hierarchical-data-in-asp-net-mvc-framework.aspx[^]
http://mikehadlow.blogspot.com/2008/10/rendering-tree-view-using-mvc-framework.html[^]
http://wiki.asp.net/page.aspx/1699/json-with-jquery-mvc3/[^]
Best Regards.
这篇关于如何在MVC3中使用JS TreeView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!