<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to Create a Web Part with a Contextual Tab</title><link>http://blogs.msdn.com/b/sharepointdeveloperdocs/archive/2010/01/28/how-to-create-a-web-part-with-a-contextual-tab.aspx</link><description>This post will cover how to create a Web Part that opens a contextual tab on the Server ribbon in Microsoft SharePoint Foundation 2010. You will be working with Server ribbon XML, EcmaScript (JavaScript, JScript), and C# code. This solution will be a</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: How to Create a Web Part with a Contextual Tab</title><link>http://blogs.msdn.com/b/sharepointdeveloperdocs/archive/2010/01/28/how-to-create-a-web-part-with-a-contextual-tab.aspx#10389861</link><pubDate>Thu, 31 Jan 2013 09:45:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10389861</guid><dc:creator>tomwaters</dc:creator><description>&lt;p&gt;For anyone trying to get this working with SharePoint 2013, I had to change:&lt;/p&gt;
&lt;p&gt;SP.SOD.registerSod(&amp;quot;&amp;quot;CustomContextualTabPageComponent.js&amp;quot;&amp;quot;, &amp;quot;&amp;quot;\/_layouts\/CustomContextualTabPageComponent.js&amp;quot;&amp;quot;);&lt;/p&gt;
&lt;p&gt;To:&lt;/p&gt;
&lt;p&gt;SP.SOD.registerSod(&amp;quot;&amp;quot;CustomContextualTabPageComponent.js&amp;quot;&amp;quot;, &amp;quot;&amp;quot;\/_layouts\/15\/CustomContextualTabPageComponent.js&amp;quot;&amp;quot;);&lt;/p&gt;
&lt;p&gt;In DelayScript (step 10) to get it to load the .js file that gets deployed into layouts.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10389861" width="1" height="1"&gt;</description></item><item><title>re: How to Create a Web Part with a Contextual Tab</title><link>http://blogs.msdn.com/b/sharepointdeveloperdocs/archive/2010/01/28/how-to-create-a-web-part-with-a-contextual-tab.aspx#10377217</link><pubDate>Thu, 13 Dec 2012 15:36:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10377217</guid><dc:creator>Zula_7</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I tested this code and the buttons do not work. I&amp;#39;ve read the comments and saw that nikhilzkingdom provides a solution.&lt;/p&gt;
&lt;p&gt;But in what function in Delay Script code &amp;nbsp;i place the code??&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;zula&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10377217" width="1" height="1"&gt;</description></item><item><title>re: How to Create a Web Part with a Contextual Tab</title><link>http://blogs.msdn.com/b/sharepointdeveloperdocs/archive/2010/01/28/how-to-create-a-web-part-with-a-contextual-tab.aspx#10135105</link><pubDate>Mon, 28 Feb 2011 21:42:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10135105</guid><dc:creator>Tesfaye Gari</dc:creator><description>&lt;p&gt;Can we create other Ribbons by the same technique? Without having the Feature xml and using the OM only?? &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10135105" width="1" height="1"&gt;</description></item><item><title>re: How to Create a Web Part with a Contextual Tab</title><link>http://blogs.msdn.com/b/sharepointdeveloperdocs/archive/2010/01/28/how-to-create-a-web-part-with-a-contextual-tab.aspx#10132409</link><pubDate>Mon, 21 Feb 2011 22:39:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10132409</guid><dc:creator>RWL01</dc:creator><description>&lt;p&gt;Thanks for the article. Is there any reason why I wouldn&amp;#39;t be able to translate this to work with a visual web part?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10132409" width="1" height="1"&gt;</description></item><item><title>re: How to Create a Web Part with a Contextual Tab</title><link>http://blogs.msdn.com/b/sharepointdeveloperdocs/archive/2010/01/28/how-to-create-a-web-part-with-a-contextual-tab.aspx#10120797</link><pubDate>Thu, 27 Jan 2011 02:21:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10120797</guid><dc:creator>Dallas Tester [MSFT]</dc:creator><description>&lt;p&gt;Sean,&lt;/p&gt;
&lt;p&gt;This is a known issue with this example. There is a long discussion about it (along with a fix from me) on the forums: &lt;a rel="nofollow" target="_new" href="http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010programming/thread/8604fda5-dad3-49e5-b820-af98ae2fb3cf"&gt;social.msdn.microsoft.com/.../8604fda5-dad3-49e5-b820-af98ae2fb3cf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you have any further questions, feel free to ask!&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Dallas&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10120797" width="1" height="1"&gt;</description></item><item><title>re: How to Create a Web Part with a Contextual Tab</title><link>http://blogs.msdn.com/b/sharepointdeveloperdocs/archive/2010/01/28/how-to-create-a-web-part-with-a-contextual-tab.aspx#10120790</link><pubDate>Thu, 27 Jan 2011 02:01:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10120790</guid><dc:creator>Sean</dc:creator><description>&lt;p&gt;If I put two of the web parts on the page, the ContextualTabWebPart seems to be crashing the page. I am curious if I give ContextualGroup and ContextualTab unique ID for each ContextualWebPart, it will display two contextual tab on Ribbon, how does the Ribbon work when I select one web part vs. the other? &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10120790" width="1" height="1"&gt;</description></item><item><title>re: How to Create a Web Part with a Contextual Tab</title><link>http://blogs.msdn.com/b/sharepointdeveloperdocs/archive/2010/01/28/how-to-create-a-web-part-with-a-contextual-tab.aspx#9996715</link><pubDate>Thu, 15 Apr 2010 18:47:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9996715</guid><dc:creator>jhugheslmr</dc:creator><description>&lt;p&gt;What do I need to do to support the webpart being on a page more than once? I have some javascript code and information contained within the webpart that I would like to access from the ribbon.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9996715" width="1" height="1"&gt;</description></item><item><title>re: How to Create a Web Part with a Contextual Tab</title><link>http://blogs.msdn.com/b/sharepointdeveloperdocs/archive/2010/01/28/how-to-create-a-web-part-with-a-contextual-tab.aspx#9982562</link><pubDate>Sun, 21 Mar 2010 15:53:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9982562</guid><dc:creator>nikhilzkingdom</dc:creator><description>&lt;p&gt;@Dallas Tester&lt;/p&gt;
&lt;p&gt;So is the product bug fixed at the next release?&lt;/p&gt;
&lt;p&gt;Also in the sample above, if you try and edit the web part (causing a postback) it will blow up with &lt;/p&gt;
&lt;p&gt;&amp;quot;ArgumentException: Ribbon 'Tab' node must have a 'Scaling' subnode&amp;quot; exception&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9982562" width="1" height="1"&gt;</description></item><item><title>re: How to Create a Web Part with a Contextual Tab</title><link>http://blogs.msdn.com/b/sharepointdeveloperdocs/archive/2010/01/28/how-to-create-a-web-part-with-a-contextual-tab.aspx#9980525</link><pubDate>Wed, 17 Mar 2010 16:37:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9980525</guid><dc:creator>Dallas Tester [MSFT]</dc:creator><description>&lt;p&gt;@nikhilzkingdom&lt;/p&gt;
&lt;p&gt;There is a product bug where the buttons aren't enabled the first time you select the Web Part. Try selecting the Web Part, de-selecting the Web Part, and selecting it again. The buttons should enable at that point. This sample works without the additional call to requestFocusForComponent, which, actually, could cause timing issues. Feel free to e-mail me if you'd like to debug your solution without the call to requestFocusForComponent.&lt;/p&gt;
&lt;p&gt;@anthonya&lt;/p&gt;
&lt;p&gt;Try selecting the Web Part, de-selecting, and selecting the Web Part again. This sample should work fine without the additional line of code. If not, e-mail me and I'll help you out.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Dallas&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9980525" width="1" height="1"&gt;</description></item><item><title>re: How to Create a Web Part with a Contextual Tab</title><link>http://blogs.msdn.com/b/sharepointdeveloperdocs/archive/2010/01/28/how-to-create-a-web-part-with-a-contextual-tab.aspx#9977836</link><pubDate>Fri, 12 Mar 2010 23:58:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9977836</guid><dc:creator>nikhilzkingdom</dc:creator><description>&lt;p&gt;@anthonya&lt;/p&gt;
&lt;p&gt;ContextualTabWebPart.cs file&lt;/p&gt;
&lt;p&gt;as part of Delay Script (hard coded string)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9977836" width="1" height="1"&gt;</description></item></channel></rss>