﻿<?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 - OnBeforeRequest Called But Not OnResponse Or OnAfterResponseProcess</title><link>http://www.intersoftsolutions.com/Community/WebGrid/OnBeforeRequest-Called-But-Not-OnResponse-Or-OnAfterResponseProcess/</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>OnBeforeRequest Called But Not OnResponse Or OnAfterResponseProcess</title><link>http://www.intersoftsolutions.com/Community/WebGrid/OnBeforeRequest-Called-But-Not-OnResponse-Or-OnAfterResponseProcess/</link><pubDate>Fri, 03 Jun 2011 06:55:50 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Yousif,&lt;/p&gt;&lt;p&gt;It seems this feature has not been added in our WebUIStudio 2011R1. I will try to collaborate with Glenn and help you by following up this to our developer teams.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>OnBeforeRequest Called But Not OnResponse Or OnAfterResponseProcess</title><link>http://www.intersoftsolutions.com/Community/WebGrid/OnBeforeRequest-Called-But-Not-OnResponse-Or-OnAfterResponseProcess/</link><pubDate>Thu, 02 Jun 2011 09:24:19 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;Glenn,&lt;/p&gt;
&lt;p&gt;Has this been added/fixed in 2011 R1?&lt;/p&gt;</description></item><item><title>OnBeforeRequest Called But Not OnResponse Or OnAfterResponseProcess</title><link>http://www.intersoftsolutions.com/Community/WebGrid/OnBeforeRequest-Called-But-Not-OnResponse-Or-OnAfterResponseProcess/</link><pubDate>Mon, 17 May 2010 05:10:31 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;Thank you for the feedback. I have noted this as a feature request and it is already been submitted to our WebGrid developer.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>OnBeforeRequest Called But Not OnResponse Or OnAfterResponseProcess</title><link>http://www.intersoftsolutions.com/Community/WebGrid/OnBeforeRequest-Called-But-Not-OnResponse-Or-OnAfterResponseProcess/</link><pubDate>Fri, 14 May 2010 14:29:11 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;We ran into an issue today that hopefully you can provide a better workaround than we're using.  We have the grid that has a virtual page size of 100.  When a grid has more records, e.g., 500, 1000, etc. and the user loads more data or any grid post back action, we "lock" the UI on OnBeforeRequest and then restore it in OnAfterResponseProcess.&lt;/p&gt;
&lt;p&gt;We do this to keep the user from doing something stupid during the post back.&lt;/p&gt;
&lt;p&gt;Today, I had a grid that has 41 rows.  As I scrolled down to the last row, the grid attempted to load more data automatically which there isn't any since all the rows are already loaded.  The problem this caused is that OnBeforeRequest was called (locking the UI) and then OnAfterResponseProcess was never called since nothing was done.  Because of this, the UI was never unlocked leaving the user unable to do anything.&lt;/p&gt;
&lt;p&gt;To work around this, we basically check the following and then unlock the UI.&lt;/p&gt;&lt;pre&gt;if ( ((oGrid.TotalLoadedRows &amp;lt;= oGrid.LayoutSettings.VirtualPageSize) &amp;amp;&amp;amp;&lt;br /&gt;      (oGrid.TotalRows &amp;lt;= oGrid.LayoutSettings.VirtualPageSize)) ||&lt;br /&gt;     (oGrid.TotalLoadedRows == oGrid.TotalRows) )
{
   UnlockUI();
}&lt;/pre&gt;

&lt;p&gt;It would be nice if there was another handler you guys can provide when OnBeforeRequest doesn't do anything so we can do any clean up when OnResponse and/or OnAfterResponseProcess is not called.  So please consider adding this to the next patch fix or update.&lt;/p&gt;</description></item></channel></rss>