﻿<?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 - Lounge - Get the count of Group by fields in intersoft webgrid</title><link>http://www.intersoftsolutions.com/Community/Lounge/Get-the-count-of-Group-by-fields-in-intersoft-webgrid/</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>Get the count of Group by fields in intersoft webgrid</title><link>http://www.intersoftsolutions.com/Community/Lounge/Get-the-count-of-Group-by-fields-in-intersoft-webgrid/</link><pubDate>Fri, 28 Aug 2015 08:40:09 GMT</pubDate><dc:creator>yudi@intersoftpt.com</dc:creator><category>Count</category><category>group by fields</category><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Glad to hear that the snippet code helps.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&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>Get the count of Group by fields in intersoft webgrid</title><link>http://www.intersoftsolutions.com/Community/Lounge/Get-the-count-of-Group-by-fields-in-intersoft-webgrid/</link><pubDate>Thu, 27 Aug 2015 10:35:32 GMT</pubDate><dc:creator>rupeshshakti</dc:creator><category>Count</category><category>group by fields</category><description>Hi Yudi,
Thanks for the quick reply.
It worked as I expected.

Thanks
Rupesh Shakti</description></item><item><title>Get the count of Group by fields in intersoft webgrid</title><link>http://www.intersoftsolutions.com/Community/Lounge/Get-the-count-of-Group-by-fields-in-intersoft-webgrid/</link><pubDate>Thu, 27 Aug 2015 02:47:46 GMT</pubDate><dc:creator>yudi@intersoftpt.com</dc:creator><category>Count</category><category>group by fields</category><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Following snippet code will show the total grouped columns on OnAfterResponseProcess event in javascript.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;script&amp;gt;
    function ShowGroupedColumnsCount2(controlId, actionName,
        lastRequestObject, xmlResponseObject)
    {
        var grid = ISGetObject(controlId);
        var rootTbl = grid.RootTable;
        var grpColumns = rootTbl.GroupedColumns;

        alert(grpColumns.length);
    }
&amp;lt;/script&amp;gt;

&amp;lt;ISWebGrid:WebGrid ID="WebGrid1" runat="server" ...&amp;gt;
    &amp;lt;LayoutSettings AllowGrouping="Yes" GroupByBoxVisible="true"&amp;gt;
        &amp;lt;ClientSideEvents OnAfterResponseProcess="ShowGroupedColumnsCount2" /&amp;gt;
    &amp;lt;/LayoutSettings&amp;gt;
    ...
&amp;lt;/ISWebGrid:WebGrid&amp;gt;
&lt;/pre&gt;
&lt;br&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;The collection of grouped-columns can be accessed in [WebGrid id].RootTable.GroupedColumns. This should helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Get the count of Group by fields in intersoft webgrid</title><link>http://www.intersoftsolutions.com/Community/Lounge/Get-the-count-of-Group-by-fields-in-intersoft-webgrid/</link><pubDate>Wed, 26 Aug 2015 15:38:03 GMT</pubDate><dc:creator>rupeshshakti</dc:creator><category>Count</category><category>group by fields</category><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I have a webgrid loaded data inide it.&lt;/p&gt;&lt;p&gt;After that i have done group by based on three columns.&lt;/p&gt;&lt;p&gt;I want to know the total columns grouped by on&amp;nbsp;OnAfterResponseProcess event in javascript.&lt;/p&gt;&lt;p&gt;Example:&lt;/p&gt;&lt;p&gt;Suposse I have groupd by three columns(mentoned in attached image) in grid.&lt;/p&gt;&lt;p&gt;I want count of those.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Regards&lt;/p&gt;&lt;p&gt;Rupesh Shakti&lt;/p&gt;&lt;p&gt;(Software Engineer)&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;</description></item></channel></rss>