对内容查询WebPart进行分页以在线共享点 [英] Paging for content query webpart for sharepoint online

查看:94
本文介绍了对内容查询WebPart进行分页以在线共享点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个内容查询Web部件,该部件从多个列表中获取数据.我对ItemStyle.xsl进行了更改以显示自定义列.现在,我想在同一个Webpart中实现分页机制.我找到了部署当前的解决方案 Imtech内容查询Web部件wsp文件,但是我的客户不满意部署外部解决方案.我还有其他方法可以实现相同目标吗?例如更改itemstyle或contentquerymain xsl文件中的内容.

I have created a content query webpart which gets data from multiple list. I made changes in ItemStyle.xsl to display the custom columns. Now I want to achieve paging mechanism in the same webpart. I found a solution to deploy current Imtech Content Query Web Part wsp file but my clients are not comfortable to deploy external solutions. Is there any other way I can achieve the same? like making changes in itemstyle or contentquerymain xsl files.

推荐答案

请不要将XSL或XSLT Webpart用于SharePoint Online.您应该使用JS/Display模板或REST API从源中检索数据并以html表格式显示.

Please do not use the XSL or XSLT webpart for SharePoint Online. You should use the JS/Display template or REST API to retrieve the data from the source and displaying it on html table format.

一旦表中有数据,就可以使用表插件" jQuery具有丰富的过滤,排序,分页和搜索选项集.

Once you have the table with data, then you can use "Table plug-in" jQuery which has rich set of filter,sorting,pagination and searching options.

这是供您参考的链接.

通过REST API调用获取所有列表项

显示模板SharePoint 2013

用于jQuery的数据表插件


这篇关于对内容查询WebPart进行分页以在线共享点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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