如何将 telerik 树视图绑定到多级存储过程
我目前有一个 2 级树视图,显示部门,然后显示这些部门内的资产。为此,我使用 SQL 存储过程来准备数据。请参阅随附的文件以查看该存储过程的输出。
我想知道如何添加另一个级别。 IE 我想要一个以具有资产的部门的站点开始的树视图。 IE 我想向树视图添加祖父母。
sql 会是什么样子呢?
I currently have a 2 level tree view that displays departments and then assets within those departments. To do this I am using a sql stored procedure to prepare the data. See the attatched file to see the output of this stored procedure.
I am wondering how to go about adding in another level. IE I want to have a tree view that started with SITE's that have Departments which have Assets. IE I want to add a grand parent to the tree view.
What would the sql look like for this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您必须修改当前根记录的parentId 值,并将SITE 记录仅保留为NULLparentId,而当前的六个根应该具有指向SITE 祖父的父id。
I think you will have to modify the parentId values for the current root records and leave the SITE record solely with NULL parentId while the present six roots should have parent id which points to the SITE grand parent.