ASP.Net MVC中来自数据库的TreeView [英] TreeView from Database in ASP.Net MVC

查看:106
本文介绍了ASP.Net MVC中来自数据库的TreeView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨......我在ASP.Net MVC工作。我在数据库表中有很多分层数据,我希望以树视图的形式在我的View中显示。但问题是最初加载所有数据需要花费太多时间。我应该最初只加载必要的节点,并且仅在需要时保留。请在这方面帮助我,制作一个可增长的树视图,并支持ajax即从服务器获取数据并动态地将其嵌入到树视图中。

Hi...I am working in ASP.Net MVC. I have lot of hierarchical data in database table which i want to show in my View in the form of a treeview. But problem is that it will take too much time to load all the data initially. I should load only necessary nodes initially, and remaining only when needed. Please help me in this regard, to make a treeview which is growable, and ajax supported i.e. to fetch data from server and embed it in treeview dynamically.

推荐答案

基本上你需要查找或编写一个显示为树的控件,并根据请求通过AJAX加载数据。没有内置的ASP.NET控件,大多数人都使用jquery控件。你的第一步是寻找一个,或告诉我们你现在使用的是什么类型的树。也许它不能做你需要的东西,你需要找到另一个?
Basically you need to find or write a control that shows as a tree, and loads data via AJAX as requested. There are no built in ASP.NET controls, most people use jquery controls. Your first step is to look for one, or tell us what sort of tree you''re using now. Perhaps it doesn''t do what you need and you need to find another ?


这篇关于ASP.Net MVC中来自数据库的TreeView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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