﻿<?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 - cells value in grouping columns</title><link>http://www.intersoftsolutions.com/Community/WebGrid/cells-value-in-grouping-columns/</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>cells value in grouping columns</title><link>http://www.intersoftsolutions.com/Community/WebGrid/cells-value-in-grouping-columns/</link><pubDate>Tue, 06 Oct 2009 03:15:39 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebGrid</category><description>&lt;p&gt;No, you could not do that in that way because &lt;b&gt;&lt;i&gt;HiddenDataMember&lt;/i&gt;&lt;/b&gt; property or hidden fields only available in WebGridColumn level. When you used group mode, the structure of field changed into GroupColumn. GroupColumn does not have that propery. If you still want to access &lt;i&gt;&lt;b&gt;HiddenDataMember&lt;/b&gt;&lt;/i&gt;, you will need to set &lt;b&gt;&lt;i&gt;HideColumnsWhenGrouped&lt;/i&gt;&lt;/b&gt; to no. With this properties, when in group mode, the column which is used for grouping will still remain. Hope this helps.&lt;/p&gt;&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>cells value in grouping columns</title><link>http://www.intersoftsolutions.com/Community/WebGrid/cells-value-in-grouping-columns/</link><pubDate>Tue, 06 Oct 2009 03:04:47 GMT</pubDate><dc:creator>vangeloni</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;ok, in that mode i can get the cell.Text anyway i need to get also any hidden fields (custom attributes) related to that cell, how to retrieve those?&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;Vince&lt;br /&gt;&lt;/p&gt;</description></item><item><title>cells value in grouping columns</title><link>http://www.intersoftsolutions.com/Community/WebGrid/cells-value-in-grouping-columns/</link><pubDate>Mon, 05 Oct 2009 22:27:07 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebGrid</category><description>&lt;p&gt;If the city has been used as group column and you wanted to get the information of the city, you can do with my previous code i gave your.&lt;/p&gt;&lt;p /&gt;&lt;pre&gt;function doButtonClick()
{ 
    //get the grid object
    var grid = ISGetObject("WebGrid1"); 
    //make sure the grid is grouped
    if (grid.RootTable.GroupedColumns.length &amp;gt; 0) 
    { 
        //get the first group row element
        var firstGroupRow = wgGetRowByGroup(grid.RootTable.GetElement(WG40.BODY,WG40.HTMLTABLE),0,0); 
        alert(firstGroupRow.innerText); 
    }
}&lt;/pre&gt;
&lt;p&gt;(0,0)&amp;gt;&amp;gt; the first index 0&amp;gt;&amp;gt; please fill it with 0 if it only has 1 grouping columns...&lt;br /&gt;       &amp;gt;&amp;gt; the second index 0&amp;gt;&amp;gt;group position&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>cells value in grouping columns</title><link>http://www.intersoftsolutions.com/Community/WebGrid/cells-value-in-grouping-columns/</link><pubDate>Fri, 02 Oct 2009 10:06:35 GMT</pubDate><dc:creator>vangeloni</dc:creator><category>WebGrid</category><description>&lt;br /&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I get the cells with &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;var celObj= rowObj.GetCells();&lt;/pre&gt;
&lt;p&gt;anyway in that collection I do not find the cell related to column related to the group.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;For example I have a webgrid with four column:&lt;/p&gt;
&lt;p&gt;name, age, city, job&lt;/p&gt;
&lt;p&gt;when I select a row i can get all cells for the row.&lt;/p&gt;
&lt;p&gt;If I group by the city when I select a row i find only the cells for name, age, job.&lt;/p&gt;
&lt;p&gt;How to get the information about the grouping column cell city?&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;Vince&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>cells value in grouping columns</title><link>http://www.intersoftsolutions.com/Community/WebGrid/cells-value-in-grouping-columns/</link><pubDate>Thu, 01 Oct 2009 22:41:43 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebGrid</category><description>&lt;p&gt;You can get the cell (value,text, attributes) by using these codes:&lt;/p&gt;&lt;p /&gt;&lt;pre&gt;var grid= ISGetObject("WebGrid1");
var selObj= grid.GetSelectedObject();
var rowObj= selObj.ToRowObject();
var celObj= rowObj.GetCells();&lt;/pre&gt;
&lt;p&gt;then, fill celObj with index number such as celObj[0]; &lt;br /&gt;You can get each cells value by filling the index number.&lt;br /&gt;&lt;br /&gt;Or&lt;/p&gt;
&lt;p&gt;You can get the information OnRowSelect event by got the row object first.&lt;br /&gt;&lt;font class="Apple-style-span" style="font-size: 15px; font-family: 'courier new', tahoma; "&gt;&lt;span style="font-size: 12px; white-space: pre; " /&gt;&lt;/font&gt;&lt;/p&gt;&lt;font class="Apple-style-span" style="font-size: 15px; font-family: 'courier new', tahoma; "&gt;&lt;pre&gt;var celObj= wgGetRowByElement(rowEl).GetCells();&lt;/pre&gt;&lt;p&gt;&lt;span style="font-family: 'lucida sans unicode'; font-size: 13px; white-space: normal; "&gt;Also, here is the code to get the first group's row element via button click. Hope this helps.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;function doButtonClick()
{ 
    //get the grid object
    var grid = ISGetObject("WebGrid1"); 
    //make sure the grid is grouped
    if (grid.RootTable.GroupedColumns.length &amp;gt; 0) 
    { 
        //get the first group row element
        var firstGroupRow = wgGetRowByGroup(grid.RootTable.GetElement(WG40.BODY,WG40.HTMLTABLE),0,0); 
        alert(firstGroupRow.innerText); 
    }
}&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p /&gt;&lt;/font&gt;
&lt;p /&gt;
&lt;p /&gt;</description></item><item><title>cells value in grouping columns</title><link>http://www.intersoftsolutions.com/Community/WebGrid/cells-value-in-grouping-columns/</link><pubDate>Thu, 01 Oct 2009 15:28:51 GMT</pubDate><dc:creator>vangeloni</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;i have a webgrid with allow grouping columns, when I group by a column how to get the cell (value, text, attributes...) related to a column grouped, because I get the selected row but when I try to get the cell related to a column grouped I got null, instead i need to get that cell.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Vince&lt;/p&gt;</description></item></channel></rss>