冻结sharepoint 2016中自定义列表视图中的第一列 [英] Freeze first column in custom list view in sharepoint 2016

查看:158
本文介绍了冻结sharepoint 2016中自定义列表视图中的第一列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!


我在本主题中读了几天但到目前为止找不到解决方案。我有一个自定义列表"员工数据库" 105列。
我使用spoodoo粘性标题(
  -
根本不起作用....



任何想法都将受到赞赏。



谢谢!




解决方案

< blockquote>

我想在粘性标题中,脚本正在设置一个特定的类(最有可能是ms-vh2)列表标题具有悬停。你可以对右边的列做同样的事情。也许添加相同的类到一个计算列,它连接你希望包含在类的范围内的字段
。示例:



计算列公式= CONCATENATE("< span class = ms-vh2>",[Title],"< / span>")



或者,您可以使用名为DataTables的东西来显示信息而不是OOB SharePoint列表视图。这内置了这些功能。


Hi!

I read couple of days in this topic but found no solution so far. I have a custom list "employee database" with 105 columns. I use spoodoo sticky headers (http://spoodoo.com/sticky-headers-sharepoint-2013-v2-0/) with jquery to freeze the headers and it works fine. But I also need excel-like solution to freeze the first one or two columns when right-scrolling. So far:

  1. I checked this one: Freeze first column in SharePoint List View? I could manage to connect a web part to the list with a view containg only 3 columns (of the list), filtering works but when I scroll rigth the upper web part (with the 3 columns) does not freeze(goes out of the screen). Here's my screenshot: 

It would be nice if I can add the web part with the 3 columns not above the list but on the left side like on a page with two columns each containing web part. The problem is that if I create such page with two web parts (each with the list) there is no Connection option below "Edit web part" so I can not connect them.

  1. I tried this one: https://stackoverflow.com/questions/18826775/fix-columns-in-horizontal-scrolling - simply does not work....

Any ideas will be appreciated.

Thanks!


解决方案

I imagine in the sticky headers, the script is setting a specific class (ms-vh2 most likely) that list headers have as hovering. You could do the same for a column on the right. Maybe add the same class to a calculated column that concatenates the field you want wrapped in a span of the class. Example:

Calculated column formula = CONCATENATE("<span class=ms-vh2>",[Title],"</span>")

Alternatively you could use a thing called DataTables to show information instead of the OOB SharePoint list views. This has these features built in.


这篇关于冻结sharepoint 2016中自定义列表视图中的第一列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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