﻿<?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 - Change code in WebGrid1_PrepareExportExecute</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Change-code-in-WebGrid1PrepareExportExecute/</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>Change code in WebGrid1_PrepareExportExecute</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Change-code-in-WebGrid1PrepareExportExecute/</link><pubDate>Thu, 19 Nov 2009 02:09:45 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Glad to hear the good news.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Change code in WebGrid1_PrepareExportExecute</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Change-code-in-WebGrid1PrepareExportExecute/</link><pubDate>Wed, 11 Nov 2009 04:16:06 GMT</pubDate><dc:creator>staffan.eriksson@semita.se</dc:creator><description>&lt;p&gt;Perfect, thank you!&lt;/p&gt;</description></item><item><title>Change code in WebGrid1_PrepareExportExecute</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Change-code-in-WebGrid1PrepareExportExecute/</link><pubDate>Thu, 05 Nov 2009 04:02:02 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Please try to store the information in an html hidden input.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;input id="ExportType" type="hidden" runat="server" /&amp;gt;&lt;/pre&gt;

&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;On your client-side button click event, set the value of the html hidden input.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;function Button1_onclick() {
    // retrieves WebGrid's object
    var WebGrid1 = ISGetObject("WebGrid1");
    var ExportTypeResult = document.getElementById("ExportType");
    ExportTypeResult.value = "EXCEL";
    WebGrid1.ExportGrid("", "EXCEL", "PORTRAIT"); // export grid to excell
}&lt;/pre&gt;

&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;And obtain the stored information in PrepareExportExecute server side event of WebGrid by using following code.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;protected void WebGrid1_PrepareExportExecute(object sender, ISNet.WebUI.WebGrid.PrepareExportExecuteEventArgs e)
{
    string ExportResultType = ExportType.Value;
}&lt;/pre&gt;

&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this help.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Change code in WebGrid1_PrepareExportExecute</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Change-code-in-WebGrid1PrepareExportExecute/</link><pubDate>Thu, 29 Oct 2009 06:45:36 GMT</pubDate><dc:creator>staffan.eriksson@semita.se</dc:creator><description>&lt;p&gt;I have two client-side buttons above my WebGrid 6.0, one for pdf export and one for Excel export.&lt;br /&gt;&lt;br /&gt;I need to check in &lt;span style="font-size: 13px"&gt;WebGrid1_PrepareExportExecute if the user has selected pdf or Excel export. Is that possible?&lt;br /&gt;&lt;br /&gt;// Staffan&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>