September 24, 2012

SharePoint Designer: Web Part PartOrder not working

Issue:

When defining PartOrder property of a web part using SharePoint Designer 2010, no matter what integer you set as the value, the web part will get positioned incorrectly in the Web Part Zone.

Solution:

Delete the ID property of the Web Part control and save the page. SPD will create a new ID for the Web Part control, and at the same time, web part order will start behaving correctly.

 

Technorati Tags:

10 comments:

Maia Lucas said...

My junior also got this problem but from your site he could solve it.

Jeffery Haynes said...

My amateur student web developers in Perth encountered this problem and I suggested this tip to them. I always tell them to remember this solution because if they forgot about it then it would eat their time.

Brandon Roath said...

On my page there is a __WebPartId and a node.

Which is it that I need to delete?

This is haunting me...

Brandon Roath said...

So my webparts have two ID's.

__WebPartId as a webpart attribute

and

WebPart sub node.

Which do I delete?

Brandon Roath said...

the sub node is 'ID' xml

Jussi Palo said...

It should be the attribute.

Sean Busby said...

Delete the ID property - why didn't I think of that? I've been trying to do it the hard way, still, it never worked. Thanks for this info.

Savannah Aitken said...

I’ve been looking for this solution for a week. I’m grateful that I’ve finally found it. Now I can finish my project in time.

Anonymous said...

Debugging solutions like this one is beneficial especially to those who aren't that knowledgeable in fixing technical errors. Good thing, post such as this one exist, they could simply follow this and could troubleshoot it right away.

Avery Harris said...

Debugging solutions like this one is beneficial especially to those who aren't that knowledgeable in fixing technical errors. Good thing, post such as this one exist, they could simply follow this and could troubleshoot it right away.