﻿<?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 - Set value to a Hidden field.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Set-value-to-a-Hidden-field/</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>Set value to a Hidden field.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Set-value-to-a-Hidden-field/</link><pubDate>Wed, 21 Nov 2012 23:44:07 GMT</pubDate><dc:creator>Hans</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am sorry for the inconvenience and I sorry for the late response.&lt;/p&gt;
&lt;p&gt;I made simple hierarchical WebGrid and try to show the column of child tables.&lt;br&gt;&lt;/br&gt;But unfortunately, I can’t show/hide the child table’s column as well.&lt;/p&gt;
&lt;p&gt;If you wish to, I will forward this scenario to the developer team as a feature request.&lt;/p&gt;
&lt;p&gt;Thank you for your understanding.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br&gt;&lt;/br&gt;Hans.&lt;/p&gt;</description></item><item><title>Set value to a Hidden field.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Set-value-to-a-Hidden-field/</link><pubDate>Tue, 20 Nov 2012 07:48:33 GMT</pubDate><dc:creator>sobikash11@googlemail.com</dc:creator><description>&lt;p&gt;Thanks for your Sample Hans. &lt;/p&gt;&lt;p&gt;I cant use &lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;WebGrid1.RootTable.Columns.GetNamedItem("CompanyName").Show();&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p /&gt;
&lt;p&gt;because the Contact_ID is in the second childTable. The Roottable has 3 childTables.&lt;/p&gt;
&lt;p&gt;Region(RootTable) -&amp;gt;City(ChildTable) -&amp;gt; Building(ChildTable: HERE IS the CONTACT_ID) ....&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;How can i access that column?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I tried &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;grid.RootTable.ChildTables[0].ChildTables[1].Columns.GetNamedItem("CONTACT_ID").Show();&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p /&gt;
&lt;p&gt;but i does not work. What iam doing wrong?&lt;/p&gt;</description></item><item><title>Set value to a Hidden field.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Set-value-to-a-Hidden-field/</link><pubDate>Mon, 19 Nov 2012 23:57:26 GMT</pubDate><dc:creator>Hans</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am sorry for the inconvenience. This issue occurs due to the WebGrid can’t get the object of column/cell that you hide.&lt;/p&gt;
&lt;p&gt;I have workaround that you might try.&lt;/p&gt;
&lt;p&gt;I made simple WebGrid sample and bind to access data source (Northwind.mdb database and Shippers table).&lt;br&gt;&lt;/br&gt;In my sample, I hide the CompanyName column through javascript code (in window onload).&lt;/p&gt;
&lt;p&gt;I also add two buttons to the page sample.&lt;/p&gt;
&lt;p&gt;The first button is to set new value in CompanyName column.&lt;br&gt;&lt;/br&gt;Before I set the new value to CompanyName column, I show the CompanyName that I hide in window onload.&lt;br&gt;&lt;/br&gt;This step is to get the object from CompanyName column.&lt;br&gt;&lt;/br&gt;After that, I hide the CompanyName once again.&lt;/p&gt;
&lt;p&gt;The second button is to get the CompanyName value.&lt;/p&gt;
&lt;p&gt;Please kindly have review on my sample and let me know your response.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;Hans.&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;&lt;/p&gt;</description></item><item><title>Set value to a Hidden field.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Set-value-to-a-Hidden-field/</link><pubDate>Mon, 19 Nov 2012 06:45:37 GMT</pubDate><dc:creator>sobikash11@googlemail.com</dc:creator><description>Hi
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;I have a Grid with 5 columns. The relevant columns are MEETINGPLACE and CONTACT_ID.&lt;/div&gt;
&lt;div&gt;Column MEETINGPLACE is a Webcombo. If i click on the Webcombo, the Webcombo loads a table. In that Table i assigned a CONTACTPERSON to a PLACE. &lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Now if i choose that Contactperson the webcombo puts the PLACE in MEETINGPLACE column and the ID of the CONTACTPERSON in the CONTACT_ID column. So far so good.&lt;/div&gt;
&lt;div&gt;For that i added these two lines in a Javascript &lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;pre&gt;grid.GetSelectedObject().ToRowObject().GetCell('CONTACT_ID').SetValue(wcDivision.Value, true);
        grid.GetSelectedObject().ToRowObject().GetCell('CONTACT_ID'&lt;span style="font-family: 'lucida sans unicode'; font-size: 10pt;"&gt;)&lt;/span&gt;&lt;span style="font-family: 'lucida sans unicode'; font-size: 10pt;"&gt;SetValue(wcDivision.Value);&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;
&lt;div&gt;The CONTACT_ID Column is visible. If it is Visible it all works fine. But if i set the column CONTACT_ID to visible=false javascript cant set a value to that column, because its hidden&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Is there a workaround for that? Or do have someone an idea, how to fix that?&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Thanks&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</description></item></channel></rss>