Questions tagged [web-part]

Web parts are ASP.NET controls that can be added to web part zones. They are generally distributed through the deployment of .WSP files. Pre-2013, they could be developed off the hosting server. With 2013, Web Parts for the most part have to be developed on the hosting server for proper library inclusion.

Filter by
Sorted by
Tagged with
1 vote
1 answer
1k views

Copy sharepoint online Page (with webpart) in different site collection

I created a page under Site Contents --> Pages library in sharepoint online. This page contains Script Editor webpart. This page working as per requirement in its own site collection. When I try to ...
0 votes
0 answers
4 views

Embed web part not updating when new .aspx file is uploaded but works fine on other SP Sites

I have a rather simple bit of html and inline style, it works in a browser and a previous version of it has worked on a particular SP site before. This site will not use the updated aspx file, it ...
0 votes
1 answer
1k views

How to force a cache refresh in SharePoint 2010

I am currently developing a web-part that generates a mega-menu for SharePoint 2010. The issue I am having is that when the user generates the menu, I have the web-part generate an HTML file and store ...
0 votes
2 answers
1k views

Disable Edit WebPart and/or Snippet link in a Script Editor Web Part on SharePoint Page?

I know it can be done with client side coding, but maybe there is a built in way to do this in SharePoint 2013. I have a web part I share with other sites, but do not want site administrators seeing ...
0 votes
2 answers
1k views

Can't "close" or "hide" web part

I'm very new to Sharepoint. I'm trying to remove a web part without deleting the contents, however, there is no "close" option available and I'd prefer not to delete the web part. Why isn't the ...
0 votes
1 answer
2k views

How can I manage to avoid the underline in a text-decoration: none

I am trying to solve the problem with the underline in a text-decoration: none. This is the script I have: p { padding: 5px 0; } a:link { text-decoration: none; } a:visited { text-decoration: ...
0 votes
2 answers
326 views

Sharepoint 2013: Sandbox webpart error after KB5002203

We have a Sharepoint 2013 farm with 2 frontends and 2 backends, running some web applications, one of them is the publishing site of the organization. On this we have some basic webparts that have ...
0 votes
1 answer
10 views

Search functionality Organizational Chart

Is there any Organizational Chart web part sample for SharePoint Online that has the search functionality which allows any user to search by employee name? I found that Pulmsail already has this ...
0 votes
1 answer
1k views

InfoPath The InfoPath form template for the selected content type cannot be loaded

I'm trying to add an InfoPath webpart to a page but I get the following error. The InfoPath form template for the selected content type cannot be loaded. The document library on SiteB has infopath ...
1 vote
1 answer
977 views

In a SPFx web part, how can I get description and Url from a SP.FieldUrlValue?

I have a SharePoint list with a Link column of type Hyperlink or Picture. How do I access the description and url values in code? export interface ISPList { Title: string; Link: object; } ...
0 votes
1 answer
1k views

iframe & removing scroll bars

Hi I have an iframe and I am trying to hide the scroll bar however with the code I'm assuming it doesn't seem to disappear. Any suggestions? <div style="overflow: hidden; margin: 15px auto; max-...
0 votes
1 answer
937 views

Display/hide control in Webpart based on edit/browse mode

I have a Visual Studio project in which I have created a Visual Webpart. In the user control I have a panel which I want to display in edit mode and hide in browse mode. ASP.NET code snippet: <...
2 votes
2 answers
926 views

How can I make the 'modified date' column of a list reflect when the contents of folder were last modified, not the folder itself?

I am using SharePoint online for work. I have a subsite with 2 WebParts, both of which are lists (XsltListViewWebPart). Each list has folders, with each folder having a number of documents within. ...
0 votes
1 answer
2k views

List down all custom webparts available under SharePoint Site using powershell

I have deployed webparts to some SharePoint site say "http://SiteCollection:6413/SiteName/". Now I want to know all the available Webpart which are addable to any page (whether are those already added ...
1 vote
1 answer
1k views

App Catalog at the Site Collection level is not working

I have set up the App Catalog at Site Collection level by following this link: Manage the Site Collection App Catalog However, when I add an SPFx webpart into the App Catalog at Site Collection level,...
1 vote
2 answers
2k views

Missing Web Parts

I getting error of missing dependencies on web parts at Central Admin. So I ran Test-ContentDatabase to find all the errors. Once found, I ran another script against my database to find where the ...
0 votes
2 answers
933 views

SP 2013 document library custom view webpart

We have a requirement to display most recent uploaded file in a document repository in a separate view on the home page. For example we have Document_Library_1 with files file_new, file_old1, ...
0 votes
1 answer
1k views

How to create a html form webpart filter for 2 list columns

I have a html form webpart (in the form of textbox input). I would like to filter 2 list columns using the same webpart: So instead of the usual filtering for 1 list column, this webpart will be used ...
0 votes
2 answers
2k views

Set background colour of description in tiles

my tiles look like this: I know how to change the darker background (from heading) but how can I change the background of the description (shows up when going with mouse over tile) and the ...
1 vote
2 answers
1k views

I want to insert attachment in particular list item using pnpjs

I want to update the list item with attachment but not sure why its failing the payload while saving it. try { sp.web.lists.getByTitle(listName).items.select(item.Title).add((r => { // this will ...
1 vote
1 answer
1k views

SharePoint 2013 Popular items web part - wrong results

Essentially, I have a Popular items webpart on a page, analytics is running - usage reports are being generated but results are not displaying correctly in the webpart. The popular items is set to a ...
0 votes
1 answer
1k views

Modern webparts & iframes not navigating to a new page

I am using SP classic site with using modern webparts in iframes. I have added the webpart into a site page and embedding this onto the homepage classic site. However, when opening a link i.e a ...
0 votes
2 answers
1k views

Tiles not centered within web part in Sharepoint 2013

I am completely new to SharePoint and trying to design/create a page as requested by the company I work for. The issue I'm having is all the tiles I've created within a web part are aligned left. I ...
2 votes
1 answer
2k views

How to add style bullets to Summary Links Web Part

I am working with Summary Links Web Part and I notice that when I click on Configure Styles and Layouts that in the dropdown the selection is different from one Site Collection to another. My ...
0 votes
1 answer
2k views

Alternate List Row Color in WebPart Content Query

XSL File : Created Custom Template Style <xsl:template name="Custom" match="Row[@Style='Custom']" mode="itemstyle"> <xsl:variable name="SafeLinkUrl"> <xsl:call-...
1 vote
3 answers
5k views

How do I run some JavaScript in a web part?

I found some JavaScript code on the web that I want to add to my custom web part so that I can modify a PageViewerWebPart's height to 100%. I just need to know what steps to take to call it. I added ...
1 vote
0 answers
10 views

Filter list web part on site page for references to that site page

I have a Site Pages library and a Glossary list. In the Glossary list, I added a lookup column to the Site Pages library (allowing for multiple values). I am essentially looking to "tag" ...
1 vote
1 answer
930 views

Can I insert multiple People Search Core Result Web Parts on the same page?

I have created a department page displaying a gallery of staff along with a few select fields from their user profile. I successfully used a People Search Core Results web part with a Fixed Keyword ...
1 vote
0 answers
9 views

Show private group calendar on other (public) SharePoint site

We have a public communication site in SharePoint Online. Now we want to display a group calendar (via webpart "Group Calendar") from a private M365 group on this communication site. ...
3 votes
1 answer
2k views

Excel Web Access Web Part won't load any workbook

I've been attempting to troubleshoot an issue on my SharePoint 2016 site with the Excel Web Access. I'm trying to embed a simple work sheet into a page. I should simply be able to open the Web Part ...
0 votes
0 answers
9 views

Page scrolls down towards Pageviewer Webpart on Page load-Issue with Newform.aspx

The Page is getting scrolled down towards the Pageviewer webpart where I have provided a link towards the Newform.aspx page of a survey. The issue is occuring whenever I add a newform.aspx page in the ...
6 votes
1 answer
2k views

Setting an audience from declarative WebPart?

I have a module that deploys some page. I'm adding webparts to these page, using a <AllUsersWebPart> node within a <View>: <View WebPartZoneID="Body" WebPartOrder="5" ...
1 vote
2 answers
1k views

SP.UI.ModalDialog Namespace or Reference

Is there any server side reference for SP.UI.ModalDialog? What is the reference for SP.UI.ModalDialog for client side? How i reference this in webpart?
0 votes
1 answer
2k views

Sharepoint Online WebPageHoverPanel on a Hyperlinked Image

I want to use a WebPageHoverPanel item on the homepage of my sharepoint site so that when the button (an image) is hovered over, it displays a snapshot of the webpage that the button takes you to. ...
1 vote
1 answer
1k views

"site users" web part sharepoint 2013 not available

"Site users" web part not coming when trying to add web part on my new site collection. Please let me know, if i need to active any feature for this?
4 votes
1 answer
5k views

When adding a WebPart I get "List does not exist" error in SharePoint 2013

I created a list (Promoted Links) and exported the list as a WebPart using SPD and added the list to the gallery. But whenever I try to add the list to another page or site, I get the "List does ...
0 votes
1 answer
1k views

SharePoint 2013 - Imageslider / image are not ajusting to web part zone (width)

No. Adjust height to fit zone. - Do not work for images / imageslider. Problem: I've inserted imageslider into a web part, and using the property "no. Adjust height to fit zone". But the images do ...
0 votes
1 answer
1k views

Recent Documents Web Part Explanation

I am currently trying to implement a Recent Documents Web part in SharePoint Online using the Modern Experience, however, I don't yet understand how it works. The main documents i want to show up are ...
0 votes
1 answer
1k views

Sharepoint doesn't always execute script

So i have a webpart where some very smart people have hardcoded the number of items to show... So i've insert some javascript in a script editor to show more items (since those smart people just add "...
0 votes
1 answer
2k views

Facing error 'Something went wrong Please try again or refresh the page' while adding OOTB custom list web part in Site Page in SharePoint online

I have been facing below error when I try to add custom list web part in Site page in SharePoint online sub Site. Something went wrong Please try again or refresh the page. Any idea about what ...
2 votes
2 answers
1k views

WebPart Does Not show up in Gallery

As a noob taking a training class, I have created a very simple sandbox solution in VS2010 with the VS2010 SP Power tools. The solution has one webpart with one button. It deploys to my site, the ...
0 votes
1 answer
1k views

Change Excel web access dynamically using javascript

I have a page with a button and an Excel web part. When I click on the button I want to load another Excel file in that web part. Is it possible to do this? Please suggest some ideas on it.
1 vote
1 answer
3k views

How to get the layout zone and zone index of a webpart in sharepoint 2013 using powershell

I have a sharepoint site that got migrated from SP 2010 to SP 2013. The webparts in the pages uses layouts like center left, center right, center etc. With SP 2013, they have changed the layout ...
3 votes
2 answers
2k views

How to restrict the number of lines to show using jquery or css?

i have created simple Custom webpart. It looks like in that web part, Description display multiple line . i have used html P tag to display Description value <p>​Loream Ipsum​Loream Ipsum​...
0 votes
3 answers
2k views

Not able to access C# method from ASPX page

I am trying to access a C# from my ASPX page that is already called from a web part for sharepoint foundation 2010. I am following instructions from the post here My breakpoint in the function isn't ...
1 vote
0 answers
76 views

What is this OOTB Empty Web part?

I can see the below Empty web part available in the Modern Pages. Can anyone provide any details on what is this or any documentation about the same?
0 votes
1 answer
951 views

Unable to add a webpart created through SharePoint designer 2010?

I am trying to create a webpart through SPD 2010 on a list. Below are the steps which I followed: Open site in SPD Go to List. Edit list in designer. Go to Views. Click on one of the Views. Click ...
1 vote
1 answer
5k views

How to manage onClick event of a row field in DetailsList(UI Fabric)

I want to catch the event when click in a row field of a DetailsList in Webpart. My code looks like : return ( <div> <div> <div className="ms-Grid"> ...
0 votes
1 answer
1k views

Getting Custom Web Part Property Value Using C#

I am creating a method that will iterate through all of the web parts on a page in my SharePoint site. What I need to do is update a custom web part's, created by another company, property. I have ...
0 votes
1 answer
5k views

How do you remove Whitespace from two separate webparts

I have searched online but to no avail. I was hoping someone from here could help. So the issue is I'm trying to remove the white space between 3 webparts on a page. I have created the following CSS ...

1
2 3 4 5
80