Tagged Questions
1
vote
0answers
32 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
29 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
133 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
104 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
66 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
229 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
858 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
483 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
177 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
306 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
432 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
2k 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
230 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
2k 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 ...
