﻿<?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 - WebGrid Export Subtotals Aggregate</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Export-Subtotals-Aggregate/</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>WebGrid Export Subtotals Aggregate</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Export-Subtotals-Aggregate/</link><pubDate>Fri, 16 Apr 2010 02:53:17 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebGrid Export Subtotals Aggregate</category><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;Yes, I have tested in here and both of your scenario are using Sum aggregate. I also can see the issue now. After dicussed with our developer teams, it seems our export have not supported aggregate info yet except, &lt;i&gt;&lt;b&gt;count&lt;/b&gt;&lt;/i&gt;. If you want, you can post this as a feature request.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebGrid Export Subtotals Aggregate</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Export-Subtotals-Aggregate/</link><pubDate>Thu, 15 Apr 2010 15:38:05 GMT</pubDate><dc:creator>goganf</dc:creator><category>WebGrid Export Subtotals Aggregate</category><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have the same issue. I would like to when exporting include the total of a different column in the group header i.e in your attached sample have CategoryID : 1 Total Units on Order : 60&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I have tried&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;pre&gt;  WebGrid1.RootTable.GroupedColumns[0].GroupRowValueFormatString = "CategoryID : [value] and Total Units  on Order : [sum(TotalUnitsonOrder)]&lt;/pre&gt;&lt;pre&gt; This doesn't work. It just prints out Total Units on Order : [sum(TotalUnitsonOrder)]&lt;/pre&gt;
&lt;p&gt;The value we want is from another column. You say previously that we need to calculate sum(amount) and fill into GroupRowValueFormatString. How would we do this? Any help would be greatly appreciated. We have a client who can't understand why we can get the total displayed in group headers on grid but not when exporting to Excel&lt;/p&gt;</description></item><item><title>WebGrid Export Subtotals Aggregate</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Export-Subtotals-Aggregate/</link><pubDate>Thu, 25 Mar 2010 23:16:11 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebGrid Export Subtotals Aggregate</category><description>&lt;p&gt;Hi Dermot,&lt;/p&gt;&lt;p&gt;I tested in WebGrid 6, 6.0.7200.219. It was running well. Please see my html export. I suggest you to use the latest hotfix (WebGrid and WebUIFramework) by using UpdateManager.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebGrid Export Subtotals Aggregate</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Export-Subtotals-Aggregate/</link><pubDate>Thu, 25 Mar 2010 08:04:00 GMT</pubDate><dc:creator>Motser</dc:creator><category>WebGrid Export Subtotals Aggregate</category><description>&lt;p&gt;Hi Handy,&lt;/p&gt;&lt;p&gt;Thanks for your reply. I downloaded your example and ran it but it still produces the same output. I have attached a html version of the output and as you can see the &lt;span style="white-space: nowrap; "&gt;CategoryID&amp;nbsp;:&amp;nbsp;1 is displayed instead of the expected&amp;nbsp;CategoryID&amp;nbsp;:&amp;nbsp;1 and &amp;nbsp;Total : CountValue.&amp;nbsp;&lt;span style="white-space: normal; "&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space: nowrap; "&gt;&lt;span style="white-space: normal; "&gt;The version of the WebGrid.dll that we are using is 6.0.7200.209&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space: nowrap; "&gt;&lt;span style="white-space: normal; "&gt;Any further help with this would be greatly appreciated.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Dermot&lt;/p&gt;</description></item><item><title>WebGrid Export Subtotals Aggregate</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Export-Subtotals-Aggregate/</link><pubDate>Thu, 25 Mar 2010 02:45:56 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebGrid Export Subtotals Aggregate</category><description>&lt;p&gt;Hi Dermot,&lt;/p&gt;&lt;p&gt;It seems the [sum(Amount)]" could not be recognized because it is the value from the other column. I think you will need to calculate sum(amount) and fill into GroupRowValueFormatString. &lt;br /&gt;Please look into my attached sample. I filled with the correct GroupRowValueFormatString, and it is recognized when exported.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebGrid Export Subtotals Aggregate</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Export-Subtotals-Aggregate/</link><pubDate>Tue, 23 Mar 2010 12:23:47 GMT</pubDate><dc:creator>Motser</dc:creator><category>WebGrid Export Subtotals Aggregate</category><description>&lt;p&gt;Hi Handy,&lt;/p&gt;&lt;p&gt;In the example metioned in the link that I attached in the the previous post. The person asking the question wanted to display the value only eg Invoice instead of Document Type : Invoice. The way of acheivng this in the grid is through the following line of code.&lt;/p&gt;
&lt;p&gt;wgDocuments.RootTable.Columns.GetNamedItem("DocumentTypeName").GroupRowInfoFormat =   "[value]";&lt;/p&gt;
&lt;p&gt;But this did not carry through to the export. The person was prompted to put in the following code and  they responded at the end of the thread by saying&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(63, 63, 63); font-family: 'segoe ui', arial, verdana, tahoma; font-size: 12px; line-height: 18px; " /&gt;&lt;/p&gt;
&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;In my VB code I added:&lt;/p&gt;
&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;span style="font-family: 'segoe ui', arial, verdana, tahoma; font-size: 13px; "&gt;WebGrid1.RootTable.GroupedColumns(0).GroupRowValueFormatString =&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: 'segoe ui', arial, verdana, tahoma; color: rgb(163, 21, 21); font-size: 13px; "&gt;&lt;span style="font-family: 'segoe ui', arial, verdana, tahoma; color: rgb(163, 21, 21); font-size: 13px; "&gt;"[value]"&lt;br style="font-family: 'segoe ui', arial, verdana, tahoma; " /&gt;&lt;br style="font-family: 'segoe ui', arial, verdana, tahoma; " /&gt;&lt;/span&gt;&lt;/span&gt;and it works!&lt;br style="font-family: 'segoe ui', arial, verdana, tahoma; " /&gt;&lt;br style="font-family: 'segoe ui', arial, verdana, tahoma; " /&gt;It looks like there are bugs regarding doing this any other way.&lt;br style="font-family: 'segoe ui', arial, verdana, tahoma; " /&gt;&lt;/p&gt;
&lt;p /&gt;
&lt;p&gt;What I wish to acheive is something like this, to set subtotals in my export. &lt;/p&gt;
&lt;p&gt;I can set the sub totals in the grid to be displayed with the following line of code&lt;/p&gt;
&lt;p /&gt;&lt;pre style="background-color: rgb(255, 252, 225); font-family: 'courier new', tahoma; font-size: 9pt; "&gt;wgDocuments.RootTable.Columns.GetNamedItem("DocumentTypeName").GroupRowInfoFormat =   "Document Type: [value] - Total: [sum(Amount)]";&lt;/pre&gt;
&lt;p /&gt;
&lt;p&gt;An example of the output in the grid is &lt;/p&gt;
&lt;p&gt; Document Type : Invoice - 1000.53&lt;/p&gt;
&lt;p&gt;What I want is to set this to be part of the export. The code that I took to be correct from the previous thread is&lt;/p&gt;
&lt;p /&gt;
&lt;p /&gt;&lt;pre&gt;protected void wgDocuments_InitializePostBack(object sender, ISNet.WebUI.WebGrid.PostbackEventArgs e)
{
    if (wgDocuments.RootTable.GroupedColumns[0] != null)
    {
        wgDocuments.RootTable.Columns.GetNamedItem("DocumentTypeName").GroupRowInfoFormat =   "Document Type: [value] - Total: [sum(Amount)]";
        wgDocuments.RootTable.GroupedColumns[0].GroupRowValueFormatString = "Document Type: [value] - Total: [sum(Amount)]";
    }
}&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p /&gt;
&lt;p&gt;But this does not work. Can you explain what I am doing wrong. I hope this brings clarity to what I am asking you.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Dermot&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>WebGrid Export Subtotals Aggregate</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Export-Subtotals-Aggregate/</link><pubDate>Mon, 22 Mar 2010 06:01:21 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebGrid Export Subtotals Aggregate</category><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;What value does &lt;span style="font-family: 'segoe ui', arial, verdana, tahoma; font-size: 12px; color: rgb(63, 63, 63); line-height: 18px; "&gt;GroupRowValueFormatString = "[value]"; &lt;span style="color: rgb(0, 0, 0); font-family: 'lucida sans unicode'; line-height: normal; font-size: 13px; "&gt;refer to?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', arial, verdana, tahoma; font-size: 12px; color: rgb(63, 63, 63); line-height: 18px; "&gt;&lt;span style="color: rgb(0, 0, 0); font-family: 'lucida sans unicode'; line-height: normal; font-size: 13px; "&gt;If ["value"] itself is "Invoice, of course it will not change. Please let me know more detail about what values that you want to use for replacing the current GroupRowValueFormatString.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', arial, verdana, tahoma; font-size: 12px; color: rgb(63, 63, 63); line-height: 18px; "&gt;&lt;span style="color: rgb(0, 0, 0); font-family: 'lucida sans unicode'; line-height: normal; font-size: 13px; "&gt;Regards,&lt;br /&gt;Handy&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebGrid Export Subtotals Aggregate</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Export-Subtotals-Aggregate/</link><pubDate>Fri, 19 Mar 2010 14:06:05 GMT</pubDate><dc:creator>Motser</dc:creator><category>WebGrid Export Subtotals Aggregate</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a question regarding the export on the webgrid. I group the rows by a  column, the groupings contains the default message eg Document Type : Invoice. I want to change this to be a different value. The issue is the same as the issue in this link.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.intersoftpt.com/Community/WebGrid/Remove-column-name-and-ID-from-grouped-column-on-export/"&gt;http://www.intersoftpt.com/Community/WebGrid/Remove-column-name-and-ID-from-grouped-column-on-export/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have done everything  mentioned in the thread as far as I can see. I have added the following code&lt;/p&gt;
&lt;p /&gt;
&lt;p&gt;protected void wgDocuments_InitializePostBack(object sender, ISNet.WebUI.WebGrid.PostbackEventArgs e)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;    if (wgDocuments.RootTable.GroupedColumns[0] != null)&lt;/p&gt;
&lt;p&gt;    {&lt;/p&gt;
&lt;p&gt;         wgDocuments.RootTable.GroupedColumns[0].GroupRowValueFormatString = "[value]";&lt;/p&gt;
&lt;p&gt;    }&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;I took this to be the solution from what I have read.  This does not solve the issue for me. Am I doing something wrong. If so can you tell me what is wrong? Please read the whole thread as it continues past the checked answer.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Dermot&lt;/p&gt;
&lt;p /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>