﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - Disabling Export from context menu options.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Disabling-Export-from-context-menu-options/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Disabling Export from context menu options.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Disabling-Export-from-context-menu-options/</link><pubDate>Wed, 14 Jul 2010 22:42:13 GMT</pubDate><dc:creator>julia</dc:creator><category>export</category><category>Context Menu</category><description>&lt;p&gt;Hi Dhaval,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;By setting &lt;span style="font-family: consolas; color: #ff0000; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #ff0000; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #ff0000; font-size: 13px"&gt;AllowExport&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;="Yes", &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;the Export option will exist in both Context Menu and WebGrid's footer. If you want to disabling Export menu in WebGrid's Context Menu, you can use the following snippet :&lt;/p&gt;&lt;pre&gt;function WebGrid1_OnRowContextMenu(controlId, rowType, rowElement, menuObject)
		{
			var WebGrid1 = ISGetObject(controlId);
			menuObject.Items.GetNamedItem("mnuExport").Disable();
			return true;
		}&lt;/pre&gt;
&lt;p&gt;in case you want to hide the Export menu, you can change the &lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;Disable()&lt;/span&gt;&lt;/span&gt; into &lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;Hide().&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I hope this could help.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Julia&lt;/p&gt;</description></item><item><title>Disabling Export from context menu options.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Disabling-Export-from-context-menu-options/</link><pubDate>Wed, 14 Jul 2010 10:18:50 GMT</pubDate><dc:creator>dhavalv</dc:creator><category>export</category><category>Context Menu</category><description>&lt;p&gt;I am trying to disable Export Data option from the Context menu. I still want the export option to appear in the Webgrid status bar. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>