0
votes
0answers
15 views

File Upload Option

I've made my own visual web part which works fine however I'd like to give the user an option to upload an image that can then be use by that web part. How do I define this in my code? At the moment ...
0
votes
1answer
28 views

Save properties of a Webpart programmatically

I want to save the properties of web part somewhere in Xml/Xslt, So that if i remove a web part and then, again add it. previous properties will be retrieved automatically into the web part.
0
votes
1answer
21 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 ...
1
vote
3answers
152 views

DefaultValue on WebPart Custom Properties

I'm new to SharePoint and I'm developing a WebPart. I'm trying to create some properties with a DefaultValue, but they stay null. Here is how I'm defining my property in my class: public static ...
2
votes
1answer
170 views

Open web part properties panel with javascript

I'm looking in a way to open the right side properties panel of my web part with javascript. This way when the user adds the web part to a page, a message and a button are displayed. Onclick the panel ...
0
votes
3answers
580 views

create_DialogOptions is not a function

I have a Custom Tool part on my web part that handles properties. It has a link that when clicked shows up a modal dialog but I'm getting this error: TypeError: SP.UI.$create_DialogOptions is not a ...
0
votes
1answer
266 views

Web part instances on Pre Render

I've developed a custom web part. With custom properties it loads an iframe along with other text. Then i tried to add this web part twice on the same page everything works fine except the "preview" ...
0
votes
1answer
73 views

How do i add a custom web part property with a dropdown list

How would i do this for a system.web.ui.webcontrols.webparts.webpart, i have found many articles showing how to do this for microsoft.sharepoint.webpartpages.webpart but this wont work for the ...
0
votes
2answers
422 views

Question about webpart properties

I have a webpartpage which in this page I added multiple custom webparts which are the same. I wanted to use the .webpart file to add my own custom property like : value so I can treat each webpart ...
0
votes
1answer
256 views

Programmatically add new fetched properties to webpart

I have a webpart which I extend and i would like to programmatically add extra fetched properties to those that already exist, but I cannot succeed in that, maybe you could be of help to me. So here ...
0
votes
1answer
150 views

Web Part Properties in different pages

Soo, I created an webpart, and I've added a custom property. The webpart works fine. Now I want to add this webpart in another page also, but with a different property value. The problem is that if ...
0
votes
3answers
243 views

Creating public properties in sandboxed webpart solutions

I'm trying to port a farm solution to a sandboxed one, and I can't figure out how to port this piece of code: [ToolboxItem(false)] public partial class vClockPartSB : ...
1
vote
3answers
520 views

Is ist possible to share viewstate properties between webparts?

I have a class "Wepart A" and a class "Webpart B" which have some similiarities. So I introduced a BaseWebpart from which A and B inherit. I want to share 2 properties (SortColumn and SortDirection) ...
0
votes
1answer
217 views

how to have a hyperlink in custom web part property

i am working on a custom web part property and my question is how can i have hyper-link(seen in the below image) or bold or italic text in the custom property for the web part?
2
votes
1answer
305 views

Setting the value of a custom web part property using object model

Let's say I have a reference to a web part that I got by using a SPLimitiedWebPartManager. How can I set the custom properties of that web part? For example, if it is a stock ticker web part, how do I ...
1
vote
2answers
748 views

WebPart property with a HyperLink editor?

I am currently developing a SharePoint 2010 WebPart that has a custom property which has to capture the Url of an external website. In an attempt to make the WebPart more complete I would like the ...
3
votes
4answers
6k views

When does custom properties of a web part get saved?

I have a web part that contains a number of custom properties. Only one of those customer properties shall not be set by the user. This property is an int, that represent a unique identifier. I want ...