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
6
votes
3answers
711 views

Possible to security trim what web parts a user can put on a page?

Basically when you select Insert -> Web Part you get this menu: Is it possible to determine what is available here based on a users role?
6
votes
3answers
1k views

How do I find out what's wrong with my sandboxed solution in SharePoint Online?

I have created a custom web part which presents a form to create a SharePoint site below the current site, while performing some ancillary actions like updating a list of subsites on the front page to ...
6
votes
2answers
1k views

Exception on connecting webparts

I have a couple of webparts on a page, XsltListViewWebPart and SPSlicerTextWebPart instances. I need to programmatically connect the filter (slicer) to the xslt webpart. When I do so, I need a ...
6
votes
3answers
1k views

SP2013 Move Blogs Posts Part to another page

I am trying to duplicate the default Blog Posts web part that is created for Blog sites on SharePoint 2013. Finding that it is not a simple things though I would guess that many others would be ...
6
votes
1answer
1k views

Programmatically set a WebPart title to a $Resources value

I need to programmatically add a web part to a page where the title is using a $Resources:Filename,Key; string. I know I can use SPUtility.GetLocalisedString() to retrieve the correct value (and loop ...
6
votes
3answers
1k views

SharePoint mini calendar view

I would like to have a mini calendar web-part on the page that gets data from the calendar list. Something like this picture
6
votes
1answer
581 views

Multicast playing of video inside SharePoint

If I use the Flow Player (http://flowplayer.org/) to play videos (which is stored on a network storage) using the Content Editor Web Part in SharePoint 2007, will the videos operate in a multicast way ...
6
votes
3answers
2k views

Search Box disappears when I save Web Part Settings

I am checking the "display search box" option in my web part properties and clicking "ok" but the search box disappears. When I click "apply" it will show the search box, but it will disappear again ...
6
votes
1answer
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" ...
6
votes
2answers
7k views

How to create .dwp WebPart in Visual Studio 2010?

I need to know how to create a web part with visual studio 2010 and deploy it with a solution package in a feature. When I try to do it by just changing the .webpart file to a .dwp file and change ...
5
votes
5answers
5k views

How to validate Web Part property value?

A custom web part has custom web part properties. I would like to validate with custom server side code when user changes property value (or when properties are bing saved). Is that possible? Can I ...
5
votes
1answer
8k views

Add an existing WebPart Using the Sharepoint client object Model [duplicate]

My knowledge of the Client Object model is fairly limited, although I have been able to remove and move existing web-parts on a particular page. But I'm now struggling to find and then add a custom ...
5
votes
2answers
18k views

List of SharePoint 2010 Out-of-Box Web Parts

Can anyone provide me with a nice URL where it will show all the Out-of-Box web parts in SharePoint 2010 and what each one of them can do?
5
votes
1answer
3k views

The difference between webpart and add-ins

From what I know both of web part and add-ins (SharePoint-hosted add-ins) can give a custom functionality to a SharePoint page. And the only differences I know is that web part can be added via server-...
5
votes
5answers
1k views

Intranet page loading slow

In the past, I have added 5 WebParts to my intranet home page. Recently my site is running too slow. I'm not sure if its related to WebParts or something else. Please suggest how can I verify if its ...
5
votes
4answers
17k views

Load JavaScript from external file in a web part

In order to hide the title of the page, I have placed JavaScript in a Script Editor presently. I want to add this functionality to few other pages. Is it possible to save this JavaScript in an ...
5
votes
4answers
1k views

Catch exception in web part, or let it bubble up?

I'm writing a web part for other sites to use in their SharePoint installation. In the logic of the web part I throw exceptions at certain failure points. I'm wondering whether it is a better ...
5
votes
1answer
2k views

How to save a SPFx client side web part to a template inside team site?

I would like to know how can I deploy a SPFx client-side web part I have created as a template to use on all page inside team site.
5
votes
4answers
6k views

How to deploy web part solution to multi-server farm?

I am having a heck of a time deploying a simple web part to a multi-server farm. The error I receive when deploying is: Error occurred in deployment step 'Activate Features': Feature with Id 'cd488818-...
5
votes
3answers
138 views

SharePoint Admin and Developer Roles [closed]

Currently in our organization we have a three man SharePoint development team where we do everything other than SharePoint admin. Our organization has development, test, and production servers. We, ...
5
votes
1answer
10k views

Custom webpart properties not holding their values!

I am dynamically adding items to a CheckBoxList that configures some settings in my web part. When I set the properties and click "OK" everything on my page works as expected and displays that data ...
5
votes
1answer
4k views

Select the ListView Web Part Automatically on AllItems.aspx

In SharePoint 2010, if you have more than one web part on a web part page, the ribbon disappears because SharePoint doesn't know which web part to display the ribbon for (this is by design because if ...
5
votes
1answer
4k views

Check to see if a web part exists on a page using SPLimitedWebPartManager

In a feature I need to check if a part is already on the page. How can this be performed (programatically) (i.e. through a feature) thx
5
votes
1answer
19k views

Add programmatically custom Web Part to page without Web Part Zone

I'd like to add custom Web Part to page without Web Part Zone programmatically, however, for some reason, I simply don't know how to do it. I created blank new Page (Body Only) PublishingWeb pWeb = ...
5
votes
3answers
16k views

Can't add web parts to a page as a user with Full Control

As a site collection admin, when I go into subsites and choose "Edit Page", and the "Insert" tab, I see a long list of categories for web parts in the left hand panel. However, when I log in as a "...
5
votes
1answer
120 views

When developing web parts, which is better server context or client context?

When developing a webpart for deployment as a farm solution is it better to use the Sharepoint server context Microsoft.Sharepoint? Or is it a better practice to use the Microsoft.Sharepoint.Client ...
5
votes
3answers
3k views

SharePoint Web Part from App that is NOT in another domain or inside an iFrame?

We created SharePoint Hosted App that offers a Web Part we can add to SharePoint 2013 pages. The problem is that web part installs as an iframe pointing to the apps domain. Two challenges in ...
5
votes
3answers
6k views

Sharepoint 2013 - Can I use Visual Studio 2012 express edition for web-parts and app parts?

I am new to SharePoint 2013. I want to develop the app and web parts using visual studio 2012 express edition. Can I use vs 2012 express edition to create app and web parts for SharePoint 2013? Can ...
5
votes
2answers
2k views

Help needed - picture library slideshow web part - photos not changing on time period

I'm using sharepoint 2013 for our works teamsite. On the home page I use the web part to display staff photos from a picture library. This has worked in the past fine - updating every 5 seconds. ...
5
votes
1answer
565 views

I can't find a WebPart I created

I created a page and then I added a Web Part to the page. When I came back to the page to make edits, the Web Part was gone. I added a new Web Part but it's default name ends with [2], which makes me ...
5
votes
1answer
4k views

How to create a multilingual visual webpart in SharePoint 2013

Have anyone ever implemented multilingual visual web part in SharePoint 2013? I see there are many links out there on this topic but they are not cohesive and complete. I don't know how can I address ...
5
votes
2answers
11k views

How to change active directory password using Code?

How to change active directory User Account Password using code?
5
votes
2answers
5k views

How to change sort order of axis on Chart Web Part?

I have a Chart Web Part that is connected to a SharePoint list. I modified the All Items default view of the list so that it would be sorted correctly but the Chart Web Part does not pickup on the ...
5
votes
3answers
764 views

“some properties in this Web Part are not available because they are configured to have fixed values”

i am working on a team site collection, and i added a Content Query web part. then i did the following:- I export the content query web part. I edit the exported web part inside SP designer . Then I ...
5
votes
3answers
6k views

can one use HTML5 tags in Sharepoint 2013 out-of-the-box

I want to know if i develop a visual web part, can i use html 5 tags in .ASCX file without adding any link to source or making changes to master page ?
5
votes
1answer
2k views

How to hide time from Date field in SPD 2013?

I want to display only date on my Business Related Web Part, but currently showing full Date Time how can i show only Date?
5
votes
1answer
320 views

Open 'Edit Form' Modal Box when a Document is Dragged into Library WP

I would like to force an 'Edit Form' modal box to open whenever a user drags a document into a Document Library Web Part. I have no idea how to do this -- is it possible? This worked perfectly for me....
5
votes
4answers
4k views

Can't rename “Title” field in List Definition

I can't rename "Title" field to "Unit Type" Here is my Schema.xml: <?xml version="1.0" encoding="utf-8"?> <List xmlns:ows="Microsoft SharePoint" Title="PrCenter - StatisticsDef" ...
5
votes
1answer
690 views

Bulk Sharepoint Webpart Modification

Is there a way to go in and edit a set of webparts in bulk, instead of one by one? We've got a site with roughly 75 pages with an average of 3 webparts per page. Each of those webparts have a section ...
5
votes
2answers
275 views

How do I handle custom webpart property type update during re-deployment

I have a custom webpart that was defined with a property like [Personalizable(PersonalizationScope.Shared), WebBrowsable(true), WebDisplayName("Chart Type"), Category("Chart - Required")] [...
5
votes
2answers
757 views

Web Parts for both 2007 & 2010

I'm curious if anyone has seen any guidance/best practices on developing web parts that can work for both SP2007 & SP2010 with minimal conversion? They wouldn't take advantage of any new 2010 ...
5
votes
1answer
5k views

Upgrading web parts from SP 2013 to SP 2016

We have various web parts targeting SP 2013. I now have a SP 2016 Beta server with VS 2015 installed. I don't see any template in VS to create 2016 web part or a way to upgrade web part project to ...
5
votes
3answers
889 views

Why is my web part showing “Add Document?” (Sharepoint 2013)

For some reason, one of my web parts is showing the "+ Add Document" link at the bottom of the web part as opposed to the new "+ New Document or drag document here" link at the top. The toolbar ...
5
votes
1answer
4k views

Display names in dropdown in webpart property

I would like to add custom property that offers a list of choices. It is possible to use Enum type. The property will be then rendered as a combobox. public enum Group { GroupA, ...
5
votes
3answers
757 views

Is there a “Who Follows me” Web Part?

I need a WebPart similar to Colleagues WebPart, but to return which users have added me as a Colleague. Does it already exist? Or, how can I develop it? I'm using SharePoint 2010.
5
votes
2answers
5k views

SharePoint 2010 RSS Viewer Web Part Fails to Load

Has anyone seen occurrences of the SharePoint 2010 RSS Viewer web part failing to complete loading when the page loads, instead remaining in constant "loading" mode with the Ajax indicator showing? I'...
5
votes
2answers
703 views

Is it possible to deactivate/remove/uninstall a default client side webpart?

I'm trying to deactivate/remove/uninstall a default Client Side Web-Part (the Yammer one) in modern pages and I don't find a way to do it: I would like the Yammer option to be not visible in the menu....
5
votes
1answer
234 views

SPCalendarView not working properly in Sharepoint 2013

I have Created a Custom Calendar webpart using SPCalendarView type. After adding this webpart to my page it is not displaying any events and the navigation buttons(two arrow buttons) for changing ...
5
votes
2answers
2k views

How to resize webpart content (Excel sheet) without scrollbars in SharePoint 2013?

I have a business data-excel web access web part. I need help for below issue. How to resize webpart content (Excel sheet) without scrollbars in SharePoint 2013? Please assist.
5
votes
1answer
3k views

Which web part properties can / cannot be edited using CSOM?

For a Content Editor Web Part for example it seems we can update Width but not Content: webPart.Properties["Width"] = "100px"; webPartDefinition.SaveWebPartChanges(); clientContext.ExecuteQuery(); // ...