In our project our web parts which were not configured yet render simple description and link to open web part properties in following format:
Thanks to http://kvdlinden.blogspot.com/2010/04/open-tool-pane-javascript-error-in.html issue has been fixed. All you need is to add following control to the master page:
string.Format(@"<a href=\"#\" onclick=\"javascript:MSOTlPn_ShowToolPane2('Edit','{0}');\">open the tool pane</a>", webPart.ID)It worked fine for MOSS 2007 but in MOSS 2010 when page is not in edit mode such link threw a javascript error.
Thanks to http://kvdlinden.blogspot.com/2010/04/open-tool-pane-javascript-error-in.html issue has been fixed. All you need is to add following control to the master page:
<SharePoint:ScriptLink language="javascript" name="ie55up.js" OnDemand="false" runat="server" />
No comments:
Post a Comment