﻿<?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 Footer Cell value</title><link>http://www.intersoftsolutions.com/Community/WebGrid/set-Footer-Cell-value/</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 Footer Cell value</title><link>http://www.intersoftsolutions.com/Community/WebGrid/set-Footer-Cell-value/</link><pubDate>Mon, 23 Nov 2009 21:11:02 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><category>footer cell</category><description>&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt;Hi John,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Your sample code and mine are basically same, by adding one more childNodes in my sample is to go deeper to the specific element. So, what you did is a correct method as well. The other samples that you might see are different, those cell’s element might has a SetText() method. When we are in the footer’s cell element,&amp;nbsp; there is no SetText() method, so we can just set the InnerText value into a specific value and it works as well.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;p&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt; &lt;/span&gt;&lt;/p&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt;Thank you,&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;
</description></item><item><title>set Footer Cell value</title><link>http://www.intersoftsolutions.com/Community/WebGrid/set-Footer-Cell-value/</link><pubDate>Mon, 23 Nov 2009 20:01:22 GMT</pubDate><dc:creator>jfrost2420</dc:creator><category>footer cell</category><description>&lt;p&gt;Thanks for the suggestions.  I was able to get and set the text of a footer cell using the following:&lt;/p&gt;&lt;pre&gt;colFooterCell = grid.RootTable.GetElement(WG40.COLFOOTER, WG40.HTMLTABLE).cells[cellIdx &amp;#43;1];

colFooterCell.style.backgroundColor = "LightSteelBlue";
colFooterCell.style.fontWeight = "bold";

alert(colFooterCell.innerText);
colFooterCell.innerText = "xx";&lt;/pre&gt;
&lt;p&gt;I was wondering if this is the correct method as all the other cell text setting examples seem to use the SetText method. &lt;/p&gt;
&lt;p&gt;  &lt;/p&gt;
&lt;p&gt;Thanks for the feedback!&lt;/p&gt;</description></item><item><title>set Footer Cell value</title><link>http://www.intersoftsolutions.com/Community/WebGrid/set-Footer-Cell-value/</link><pubDate>Mon, 23 Nov 2009 02:34:44 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><category>footer cell</category><description>&lt;p&gt;Hi John,&lt;/p&gt;
&lt;p&gt;    In order to update the Footer Cell's value when you edit a cell is by using a &lt;strong&gt;&lt;em&gt;"OnExitEditMode" &lt;/em&gt;&lt;/strong&gt;on the client side. You have to get the value from an edited objet and set it to the footer's element cell.&lt;/p&gt;
&lt;p&gt;Here are the sample code that I made in client side:&lt;/p&gt;&lt;pre&gt;&lt;pre&gt;function WebGrid1_OnExitEditMode(controlId, tblName, editObject)
{
	var WebGrid1 = ISGetObject(controlId);

	WebGrid1.RootTable.GetElement(WG40.COLFOOTER, WG40.HTMLTABLE).cells&lt;/pre&gt;&lt;pre&gt;	[4].childNodes[0].nodeValue = "Element : " &amp;#43; editObject.element.value;
		  
	return true;
}&lt;/pre&gt;&lt;/pre&gt;
&lt;p&gt; Thank You,&lt;/p&gt;
&lt;p&gt;Andi Santoso&lt;/p&gt;</description></item><item><title>set Footer Cell value</title><link>http://www.intersoftsolutions.com/Community/WebGrid/set-Footer-Cell-value/</link><pubDate>Sun, 22 Nov 2009 20:23:49 GMT</pubDate><dc:creator>JKMac</dc:creator><category>footer cell</category><description>&lt;p&gt;Hi John,&lt;/p&gt;&lt;p&gt;They should have the sample, I have this scenario before, and able to manage it using ExitEditMode client side event in WebGrid. With that client side event you can re-calculate the value of cells in each WebGridRow and then mapped it to footer cells. Sorry I can't attach the code snippet here, I'm not at my PC right now :)&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;JKMac&lt;br /&gt;&lt;/p&gt;</description></item><item><title>set Footer Cell value</title><link>http://www.intersoftsolutions.com/Community/WebGrid/set-Footer-Cell-value/</link><pubDate>Sat, 21 Nov 2009 10:39:02 GMT</pubDate><dc:creator>jfrost2420</dc:creator><category>footer cell</category><description>&lt;p&gt;I am looking for an example of how to set the Footer Cell's value.  When I edit a cell I would like to update the footer cells value as well.  I need to do this on the client side.  &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item></channel></rss>