﻿<?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 - How to access  hidden cloumn Values of webgrid7 from client side?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-access-Hidden-cloumn-Values-from-client-side-of-Webgrid7-/</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>How to access  hidden cloumn Values of webgrid7 from client side?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-access-Hidden-cloumn-Values-from-client-side-of-Webgrid7-/</link><pubDate>Mon, 22 Mar 2010 22:28:07 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><category>access  hidden cloumn Values  on Client Side</category><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Hi Gaurav Desai,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; Sorry for the attachment, I have re-attached a downloadable sample. Glad to hear that you can get the value from client side now. However, we do not support your scenario at this moment.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; If we set the column to be invisible, that particular column is not being render actually. So, in this case, the data will not be existed and our column can only holds one hidden data member.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; I hope it helps. Thank you and have a nice day.&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>How to access  hidden cloumn Values of webgrid7 from client side?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-access-Hidden-cloumn-Values-from-client-side-of-Webgrid7-/</link><pubDate>Mon, 22 Mar 2010 08:59:48 GMT</pubDate><dc:creator>desaigs81</dc:creator><category>access  hidden cloumn Values  on Client Side</category><description>&lt;p&gt;Thanks for the solutions. By the way the zip file attachment is for some reason not downloadable, can you please check ?&lt;/p&gt;
&lt;p&gt;I tried adding (rather associating) a hidden column with one of visible columns and i am now able to get its value from client side as described in your answer. &lt;/p&gt;
&lt;p&gt;But the serious limitation with this approach is that i can have only one hidden data member per visible column. What if i am displaying only 5 columns but for other computation purpose need to access more than 5 other columns ( which is really the case in my scenario) ? &lt;/p&gt;
&lt;p&gt;Is there a way i can access these hidden members from the columns for which i have set its 'visible' property to false ???&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;G.S&lt;/p&gt;</description></item><item><title>How to access  hidden cloumn Values of webgrid7 from client side?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-access-Hidden-cloumn-Values-from-client-side-of-Webgrid7-/</link><pubDate>Mon, 22 Mar 2010 05:20:14 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><category>access  hidden cloumn Values  on Client Side</category><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Hi Gaurav Desai,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; If you are trying to access a hidden column member, I will recommend you to use HiddenDataMember feature. With this, you can set a hidden column in your WebGrid and access the value by getting its attribute. Here is the snippet to get the value of hidden data member:&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&lt;span style="font-size: 9pt; "&gt;        function Button1_onclick()
        {
            var grid = ISGetObject("WebGrid1");
            var selectedObject = grid.GetSelectedObject();
            var getRowObject = selectedObject.GetRowObject();
            var getCells = getRowObject.GetCells().GetNamedItem("Phone")
            var getHiddenValue = getCells.GetElement().attributes["Fax"].value;
        }&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;In here, I set a hidden value under a Phone column. So, I just go to Phone column and get the value of its attribute, which already been set to be a Fax column data member.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;To be clarify, I also attached you a sample of mine on how to create a hidden data member (please select a row first before click on the button). I hope it helps. Thank you and have a nice day.&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;
&lt;p /&gt;</description></item><item><title>How to access  hidden cloumn Values of webgrid7 from client side?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-access-Hidden-cloumn-Values-from-client-side-of-Webgrid7-/</link><pubDate>Sat, 20 Mar 2010 05:10:10 GMT</pubDate><dc:creator>desaigs81</dc:creator><category>access  hidden cloumn Values  on Client Side</category><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;We have used WebGrid7 in sharepoint webpart. the grid is created dynamically from serverside. We have implementd self hirechical grid. We have few columns which we want to use for manipulations on client side, but at the same time we dont want to display the same to the end users. &lt;/p&gt;
&lt;p&gt;We have tried to access the same using following code, but as the column is hidden we are not able to access the value.&lt;/p&gt;&lt;pre&gt;var grid = ISGetObject( [Grid ID] );
        var selObj = grid.GetSelectedObject();
        var row = selObj.GetRowObject(); // get the WebGridRow object
        if (row.Type == "Record")
        {
            // obtain WebGridCellCollection of the specified row.
            var cells = row.GetCells();

            // get the WebGridCell object by name.
            alert( cells.GetNamedItem( [Hidden Coulmn Name] ) );
            
        }&lt;/pre&gt;

&lt;p&gt;The above example displayed Null value&lt;/p&gt;
&lt;p&gt;Please anyone can resolve this or let me know what is otherway to achive the same thing ?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;G.S&lt;/p&gt;</description></item></channel></rss>