Posts Tagged “web part”

Drag & Drop Web Part Y-offset Problem

January 18 2011 4 comments

I’ve come across a bug in SharePoint 2010 with my custom master page that is based on minimal.master. In the edit mode, if I try to drag and drop web parts around, the element that is used to mark the drag position has a strange offset. Upon more investigation it appears that the javascript function that positions the marker with…

Read more »

SharePoint 2010 – Ajax Panel in Web Part’s Editor Part

June 28 2010 10 comments

Have you ever wanted to have conditional property setting possibilities in your custom web parts? I have. The scenario has been that I would have wanted to render a control to web part property setting based on some other property selection – i.e. if user selects something from web part’s properties, something else would emerge to be selected from…

Read more »

Using EditorParts for Dynamic/Data Driven WebPart Editors

April 14 2010 7 comments

Having worked with Sharepoint for a few months now I’ve been overwhelmed by the endless amount of XML I’ve had to type in just to package a simple feature to a deployable wsp. And also by the fact that I’m now spending significantly less time writing c# code that I’ve gotten so accustomed to working with. In fact, there seems…

Read more »

Web Designer Friendly Web Parts, Take 2

April 12 2010 3 comments

We discussed an approach for creating Web Parts backed by a single user control in a previous post. While the approach works, it’s not quite perfect yet.

First, it requires repeating a bunch of boilerplate code that should be neatly abstracted away, if possible. Second, the part where the user control…

Read more »

Web Designer Friendly Web Parts

March 8 2010 One comment

UPDATE:

My colleague, Lauri, went further after we discussed the method described in this article, and he generalized the process of making Visual Web Parts. I really like his approach more, as it also solves the problems with web part connections and the “double refreshing” problem, so please consider this article as obsolete and look at the better

Read more »