2
votes
1answer
566 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, ...
0
votes
0answers
74 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
0answers
65 views

Update Web Part Property not working

this is my code: [Category("TripleChoice Settings"), Personalizable(PersonalizationScope.Shared), WebBrowsable(true), WebDisplayName("Parameter"), WebDescription("")] public ...
3
votes
1answer
184 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 ..
1
vote
1answer
176 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
40 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
200 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
210 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" ...
0
votes
1answer
72 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
389 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
1k 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
748 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
217 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
531 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
609 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
3k 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
254 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
2k 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
3k 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 ...