Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [web-part-property]

A function of a web part that defines a specific characteristic of its behavior, such as CssClass.

0
votes
0answers
23 views

web part uses default values instead of new value from propertypanetextfield

I am using a react web part. I don't understand why my web part is using the default value instead of updated value from the propertyPanetext field. Isn't this behavior supposed to be reactive. There ...
2
votes
1answer
117 views

Audience Targeting web part property missing while exporting the content search web part?

I customized the CSWP then I exported that web part, After Exporting the CSWP web part the Audience targeting property is missing Which is from the Advanced section. I am not sure why that property is ...
2
votes
1answer
263 views

Custom radio button property for SharePoint web part

I have created Custom property for string and drop down list . Currently I'm trying to create radio button custom web part property. Custom property name will be City 2 radio button will be Las ...
1
vote
0answers
30 views

Sharepoint Web part properties will not cover in Site Template?

Whether SiteTemplate will include all the CSWP web part Properties or not? I referred this link Site Template I am clear about uses and supports of the Site template, But I am not sure whether it ...
1
vote
0answers
197 views

URL token not working in webpart properties

In a SharePoint Online webpart page, I added an image viewer web part. The following URLs work: /sites/a6c36769/SiteAssets/Tri.jpg ../SiteAssets/Tri.jpg (The full URL works because it is shortened ...
3
votes
1answer
423 views

multi checkbox webpart properties

I wish to provide option to Select multiple option in my webpart Properties. Below code only allows me to Select one option. How to Select multiple options? Private colorPicked As MyColors Public ...
0
votes
1answer
189 views

Can't set web part to auto adjust height

I have an Excel Web Part on a web part page that has a fixed height of 400 pixels. Every time I try to set the height to auto adjust, the setting won't take hold. The next time I go to edit the web ...
4
votes
2answers
8k views

How to get web part id

This is a follow up question to the one i asked earlier : Reading web part properties using javascript object model In my earlier question I had been able to access the properties using jsom but i am ...
6
votes
1answer
10k views

Reading web part properties using JavaScript Object Model in SharePoint 2013

I am using the below code to read the properties of a web-part using JSOM. While i can read the properties of the web-parts that are there on the current web part page, I would like to know of a way ...
2
votes
2answers
4k views

Quick edit will not appear in some views but will inside others

I have created a list with different views and each view is a standard view style. I set up a link to the view and edit the web part properties to show the tool bar. Now before I selected show tool ...
0
votes
1answer
29 views

Run some code when property of the webpart has changed

Is it possible to run some piece of code when a user edits a page and changes specific WebPart property value? I thought I would simply add the piece of code to setter of the property but ...
6
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, ...
1
vote
0answers
275 views

Web Part ApplyChanges not working properly

I have my Tool Part class to handle the properties of my Web Part. My method to create the properties( CreateChildControls ) is working fine but everytime I run this method it's reading a parameter ...
0
votes
1answer
660 views

Create Password Field in webpart properties

I have created a custom web-part. this web-part have a custom web-part properties. i want a Password field in this property. How can i do this ? Any help will appreciated ..
2
votes
1answer
494 views

Setting the value of a sandbox web part's custom properties in .webpart file

I've created a new web part in a sandbox solution. This web part has a custom string property called 'PetName'. I'd expect to be able to set the initial value of this property in the .webpart file. ...
0
votes
1answer
64 views

WebPart Properties

I would like to manage my WebPart Properties. I would store an ID -> this id is the id of a configuration for my webpart. First: How can i Store it? Second: How can i Find it? I'm using the ...
1
vote
0answers
500 views

Setting Custom Property of SharePoint WP readonly

How to set the custom property(bool) of sharepoint 2010 custom webpart as read Only based on a condition?
1
vote
0answers
398 views

Config standard SiteUsers WebPart in SP2010

I´ve got a problem with a normal SiteUsers WebPart. Currently I have this code: <WebPart xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="...
0
votes
1answer
86 views

Add web part properties in separate file

I am developping a web part that customizes the SharePoint Ribbon (hide or show buttons). Can I store some properties in a separate file? If the web part is active on three sites, I should have three ...
1
vote
1answer
758 views

Is it safe to store the credentials in the properties of a Web Part?

In my web part, I use a class WebProxy. The object of this class uses special credentials. It would be nice to store the credentials in the Web Part properties. And so the user can change them. For ...
1
vote
1answer
3k views

Webpart not refreshing after editing custom properties

I have a webpart with several properties that are part of a custom ToolPart. When i set the properties i would like the webpart to reflect the property changes while still editing after having ...
3
votes
1answer
2k views

Web part property - allow multi-line values

I have the following code in a webpart I am developing. WebBrowsable(true), Category("Data"), WebDisplayName("Banks"), WebDescription("Banks"), Personalizable(PersonalizationScope.Shared)] public ...
0
votes
2answers
281 views

Does webpart property validation code execute every page load

I have a custom webpart with custom webpart property. I have created a complex validation in the property. My question is, does this validation execute on every page load or happens only when ...
4
votes
2answers
891 views

Contributors can't seem to save personalisable web part properties?

I've using the following code to save the week a user is currently looking at, for next time they view the web part: private string _week = null; [WebPartStorage(Storage.Personal)] public string ...
2
votes
2answers
4k views

Any way to open Web Part Properties via a URL?

Normally, we add a web part to the page. To edit the properties, we edit the page and click on "Edit Web Parts". Can we open the Web Part properties page via a query string like we can open the web ...
4
votes
3answers
4k views

Web Part Tool Part Customization issue

To customize the Web Part Tool Part, im following this tutorial : http://blogs.microsoft.co.il/blogs/dudin/archive/2011/04/17/sharepoint-2010-how-to-customize-the-web-part-tool-part.aspx when i use ...
5
votes
2answers
274 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")] [...
1
vote
2answers
3k views

Can I load a dropdown list with a SharePoint list to set a Custom Web Part Property?

I found this post which claims to show you how to do it: http://blog.concurrency.com/sharepoint/create-a-custom-web-part-for-sharepoint-2010/comment-page-1/#comment-1851 But after carefully ...
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 ...