1
vote
3answers
76 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
131 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
280 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
170 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
52 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
357 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
207 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
128 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
2answers
223 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
449 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
192 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
284 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
703 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
5k 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 ...