修改sharepoint视图以递归分组(子组)
当创建视图并按某个字段的值设置分组时,它仅分组1层深度,就像这样
A
--A.1
--A.2
A.2
--A.2.1
--A.2.2
B
--B.1
但是我想将其分组以形成一棵树,一个层次结构。
A
--A.1
--A.2
----A.2.1
----A.2.2
B
--B.1
一个完美的解决方案是,如果我可以制作自定义视图来查看递归分组的项目。
有什么想法如何实现这一目标吗?
它应该看起来像这样:
alt text http://img6.imageshack.us/img6 /1958/ss20090703135209.png
When creating a view and setting group by value some field, it groups only 1 level deep, like this
A
--A.1
--A.2
A.2
--A.2.1
--A.2.2
B
--B.1
However i would like to group it to make a tree, a hierarchy.
A
--A.1
--A.2
----A.2.1
----A.2.2
B
--B.1
A flawless solution would be if i could just make my custom views to view a recursively grouped items.
Any ideas how to achieve that?
It should look something like this:
alt text http://img6.imageshack.us/img6/1958/ss20090703135209.png
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要构建自己的 ListView Web 部件。 但是,已经有一个第三方产品可以执行此操作,即 Bamboo 解决方案树视图 Web 部件
You would need to build your own ListView Webpart. However, there is already a third party product that does this, the Bamboo Solutions tree View WebPart
您将需要从内容查询 Web 部件获取数据并使用您自己的 XSLT 对其进行格式化。
XSL 并不容易做到这一点,因为它没有用于轻松嵌套线性列表的“堆栈”结构。
You will need to get the data from maybe a content query web part and format it with your own XSLT.
XSL is not the easist to do this with as it has no "stack" structure for easily nesting a linear list.