﻿<?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 - Automatically recalculate group sum</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Automatically-recalculate-group-sum/</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>Automatically recalculate group sum</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Automatically-recalculate-group-sum/</link><pubDate>Thu, 12 Nov 2009 23:25:03 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;In order to automatically recalculate the group sum you will need to refresh the grid. You could achieve this by invoking the refreshGrid script from UpdateRow server side event handler. Here is the snippet:&lt;/p&gt;&lt;p&gt;UpdateRow event handler:&lt;/p&gt;&lt;pre&gt;protected void WebGrid1_UpdateRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e)&lt;br /&gt;{&lt;br /&gt;    WebGrid1.ClientAction.InvokeScript("refreshGrid()");&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;RefreshGrid client side function:&lt;/p&gt;&lt;pre&gt;function refreshGrid() {&lt;br /&gt;    setTimeout(function() {&lt;br /&gt;        var grid = ISGetObject("WebGrid1");&lt;br /&gt;        grid.Refresh();&lt;br /&gt;    }, 50);      &lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Automatically recalculate group sum</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Automatically-recalculate-group-sum/</link><pubDate>Thu, 12 Nov 2009 03:22:15 GMT</pubDate><dc:creator>staffan.eriksson@semita.se</dc:creator><description>&lt;p&gt;I have a grouped WebGrid 6.0. For some reason the group sum isn't recalculated when a change is made on a record.&lt;br /&gt;&lt;br /&gt;How can the group sum be automatically recalculated?&lt;br /&gt;&lt;br /&gt;// Staffan E. &lt;/p&gt;</description></item></channel></rss>