Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Auto Refresh XsltListViewWebPart in SharePoint
WhatsApp
Abhay Shanker
11y
6.4
k
0
0
25
Blog
This blog explains the procedure of making an XsltListViewWebPart refresh, automatically. This can be achieved simply by writing a few lines of code given as below:
SPFile
spFile
= web
.
GetFile
(
"Lists/Country/AllItems.aspx"
);
SPLimitedWebPartManager
wpManager
=
spFile
.
GetLimitedWebPartManager
(
PersonalizationScope
.
Shared);
XsltListViewWebPart
lvwp
= (XsltListViewWebPart
)
wpManager
.
WebParts
[
0];
lvwp
.
AutoRefresh
=
true
;
lvwp
.
AutoRefreshInterval = 15;
wpManager
.
SaveChanges
(
lvwp
);
Auto refresh of XsltListViewWebPart in SharePoint
Up Next
Introduction To SharePoint 2016 Add-ins (aka apps)
Ebook Download
View all
Getting Started with SharePoint Framework Development using TypeScript, PnP JS, and React JS
Read by 4.9k people
Download Now!
Learn
View all
Membership not found