﻿<?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 - Limiting Export Formats</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Limiting-Export-Formats/</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>Limiting Export Formats</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Limiting-Export-Formats/</link><pubDate>Wed, 06 Jan 2010 13:38:32 GMT</pubDate><dc:creator>Gmontes</dc:creator><category>WebGrid</category><description>&lt;p&gt;Thanks Andi,&lt;/p&gt;&lt;p&gt;The workaround works great!&lt;/p&gt;</description></item><item><title>Limiting Export Formats</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Limiting-Export-Formats/</link><pubDate>Tue, 05 Jan 2010 21:28:29 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><category>WebGrid</category><description>&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Hi Guillermo Montes,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes,&amp;nbsp;that would be a new event on R2,&amp;nbsp;apologize for that. You can use the OnAfterInitialize client event instead. Here is the workaround:&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;function WebGrid1_OnAfterInitialize(controlId)
{
		    
	var grid = ISGetObject("WebGrid1");
	grid.ExportTypeList = new Array("PDF", "EXCEL", "XML");
	grid.ExportWndAttr = "height= 500, width= 700, scrollbars= yes, status= yes, 		toolbar= no, menubar= yes, location= no, resizable= yes";		  
			
	return true;
}&lt;/pre&gt;
&lt;p&gt;      &lt;span style="font-size: 9pt"&gt;I hope it helps and please, do not hesitate to ask if you have any other questions. Thank you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Limiting Export Formats</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Limiting-Export-Formats/</link><pubDate>Tue, 05 Jan 2010 11:27:24 GMT</pubDate><dc:creator>Gmontes</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hi Andi,&lt;/p&gt;&lt;p&gt;Thanks for your reply. I'm guessing this should be under LayoutSettings\ClientSieEvents... We have WebStudio 2009 R1 SP1. I see that event is a new client side event on your 'New UI Enhacements' page. Is this for R2?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Limiting Export Formats</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Limiting-Export-Formats/</link><pubDate>Tue, 05 Jan 2010 04:12:16 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><category>WebGrid</category><description>&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Hi Guillermo Montes,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes, there is a way to hide the specific export context menu. We need to use client side event OnExportContextMenu. Here&amp;nbsp;is the sample code to hide the Excel menu.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size: 9pt"&gt;&lt;pre&gt; function WebGrid1_OnExportContextMenu(controlId, table, menu, location)
 {
  var WebGrid1 = ISGetObject(controlId);

  menu.Items[6].Hide();
            
  return true;
 }
&lt;/pre&gt;&lt;/span&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;I hope it helps and please, do not hesitate to ask if you have any other questions, Thank you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Best Regards,&lt;br /&gt;Andi Santoso.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Limiting Export Formats</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Limiting-Export-Formats/</link><pubDate>Mon, 04 Jan 2010 16:59:38 GMT</pubDate><dc:creator>Gmontes</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is there a way to limit the number of available formats for export that shows up in the export context menu for the grid? Say we don't want to offer TIF among some other options...&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>