﻿<?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 - OnRowChanged  bug</title><link>http://www.intersoftsolutions.com/Community/WebGrid/OnRowChanged/</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>OnRowChanged  bug</title><link>http://www.intersoftsolutions.com/Community/WebGrid/OnRowChanged/</link><pubDate>Mon, 11 Oct 2010 14:57:08 GMT</pubDate><dc:creator>mmikaeel2</dc:creator><category>WebGrid</category><description>&lt;p&gt;Well, simplest fix is to set the grid to BindingOperationMode="ClientBinding"&lt;/p&gt;&lt;p&gt;That also will make everything work more smooth and fast.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>OnRowChanged  bug</title><link>http://www.intersoftsolutions.com/Community/WebGrid/OnRowChanged/</link><pubDate>Thu, 20 May 2010 13:50:44 GMT</pubDate><dc:creator>mmikaeel2</dc:creator><category>WebGrid</category><description>&lt;p&gt;I managed to fix it, all good now.&lt;/p&gt;&lt;p&gt;Thanks allot for your support.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>OnRowChanged  bug</title><link>http://www.intersoftsolutions.com/Community/WebGrid/OnRowChanged/</link><pubDate>Wed, 19 May 2010 09:14:16 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><category>WebGrid</category><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Hi Maged,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; Thank you, however, I am having a difficulty to replicate the new issue in my end. Could you provide me with more details regarding this? Perhaps, steps to reproduce or send me a video would be great.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; 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>OnRowChanged  bug</title><link>http://www.intersoftsolutions.com/Community/WebGrid/OnRowChanged/</link><pubDate>Wed, 19 May 2010 05:14:55 GMT</pubDate><dc:creator>mmikaeel2</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hi Andi,&lt;/p&gt;&lt;p&gt;   Nice work arround. The onlything is not working properly is the &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-size: 9pt;"&gt;grid1.RootTable.GetRowByKeyValue(txt.value).Select();                   &lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;The  &lt;span style="font-size: 9pt;"&gt;grid1&lt;/span&gt; doesn't show the selected row after we select back the older row, it need kind of screen referesh, but I could not do it, any idea?&lt;/p&gt;
&lt;p&gt;Also, I had to modify this solution, as we need to handle grid1_OnBeforeRowSelect(...).&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Maged&lt;br /&gt;&lt;/p&gt;</description></item><item><title>OnRowChanged  bug</title><link>http://www.intersoftsolutions.com/Community/WebGrid/OnRowChanged/</link><pubDate>Tue, 18 May 2010 14:51:03 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><category>WebGrid</category><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Hi Maged,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; I have modified our sample WebGrid of "SendingCustomRequest.aspx" and hopefully, it will meet your scenario. Please kindly add and change that sample with the provided code. After modifed them, you can try to change row quickly and see that the WebGrid2 will also refreshing acording to the last select row in WebGrid1. Here is the snippet:&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-size: 9pt; "&gt;        var status = true;
        function WebGrid1_OnRowSelect(gridId, tblName, rowIndex, rowElm) {
            var grid = ISGetObject("WebGrid1");
            if (status == true) {
                var key = rowElm.keyValue;
                {
                    grid.AddInput("key", key);
                    grid.SendCustomRequest();
                }
                status = false;
                return true;
            }
            else {
                return false;
            }                  
        }        
        function WebGrid2_OnAfterResponseProcess(controlId, actionName, lastRequestObject, xmlResponseObject) {          
            var txt = document.getElementById("ctl00_content_TextBox1");
            var grid1 = ISGetObject("WebGrid1");
            var grid1SelectedObject = grid1.GetSelectedObject().ToRowObject();
            var grid2 = ISGetObject("WebGrid2");
            
            setTimeout(function() {
            if (grid1SelectedObject.KeyValue != txt.value) {
                txt.innerText = grid1SelectedObject.KeyValue;
                    grid2.Refresh();
                    grid1.RootTable.GetRowByKeyValue(txt.value).Select();                   
                }
            }, 200);
                                    
            status = true;
            return true;
        }&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&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>OnRowChanged  bug</title><link>http://www.intersoftsolutions.com/Community/WebGrid/OnRowChanged/</link><pubDate>Tue, 18 May 2010 09:23:48 GMT</pubDate><dc:creator>mmikaeel2</dc:creator><category>WebGrid</category><description>&lt;p&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type" /&gt;&lt;meta content="Word.Document" name="ProgId" /&gt;&lt;meta content="Microsoft Word 11" name="Originator" /&gt;&lt;link href="file:///C:\DOCUME~1\Maged\LOCALS~1\Temp\msohtml1\01\clip_filelist.xml" rel="File-List" /&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt; &lt;w:WordDocument&gt;&lt;w:View&gt;Normal&lt;/w:View&gt;&lt;w:Zoom&gt;0&lt;/w:Zoom&gt;&lt;w:PunctuationKerning/&gt;&lt;w:ValidateAgainstSchemas/&gt;&lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;&lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;&lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;&lt;w:Compatibility&gt;&lt;w:BreakWrappedTables/&gt;&lt;w:SnapToGridInCell/&gt;&lt;w:WrapTextWithPunct/&gt;&lt;w:UseAsianBreakRules/&gt;&lt;w:DontGrowAutofit/&gt;&lt;/w:Compatibility&gt;&lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;&lt;w:LatentStyles DefLockedState="false" LatentStyleCount="156"&gt;&lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt;
&amp;lt;!--
 /* Font Definitions */
 @font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;
	mso-font-charset:2;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:0 268435456 0 0 -2147483648 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	mso-header-margin:35.4pt;
	mso-footer-margin:35.4pt;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
--&amp;gt;
&lt;/style&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}
&lt;/style&gt;
&lt;![endif]--&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;Hi,&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;span style=""&gt;   &lt;/span&gt;Thanks again for your support.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;span style=""&gt;   &lt;/span&gt;First let me show you what I did in the
code.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;On the
server side:&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;; color: gray;"&gt;///&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;; color: green;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;; color: gray;"&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;; color: gray;"&gt;///&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;; color: green;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;; color: gray;"&gt;///&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;; color: green;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;; color: gray;"&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;; color: gray;"&gt;///&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;; color: green;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;; color: gray;"&gt;&amp;lt;param
name="sender"&amp;gt;&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;; color: gray;"&gt;///&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;; color: green;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;; color: gray;"&gt;&amp;lt;param
name="e"&amp;gt;&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;span lang="undefined" style=""&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;; color: blue;"&gt;protected&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt;
MemebershipTypesGrid_InitializePostBack(&lt;span style="color: blue;"&gt;object&lt;/span&gt;
sender, ISNet.WebUI.WebGrid.&lt;span style="color: rgb(43, 145, 175);"&gt;PostbackEventArgs&lt;/span&gt;
e)&lt;/span&gt;&lt;span lang="undefined" style=""&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;; color: blue;"&gt;if&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt; (e.Action
== ISNet.WebUI.WebGrid.&lt;span style="color: rgb(43, 145, 175);"&gt;PostBackAction&lt;/span&gt;.Custom)&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt;&lt;span style=""&gt; &lt;/span&gt;ucSelectedMemebershipTypID.Value = Request[&lt;span style="color: rgb(163, 21, 21);"&gt;"key"&lt;/span&gt;] &lt;span style="color: blue;"&gt;as&lt;/span&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt;;&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt;&lt;span style=""&gt; &lt;/span&gt;FreeProductsGrid.ClientAction.Refresh();&lt;span style="color: green;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt;&lt;span style=""&gt; &lt;/span&gt;PricedProductsGrid.ClientAction.Refresh();&lt;span style="color: green;"&gt;data&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt;}&lt;/span&gt;&lt;span lang="undefined" style=""&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;On the
client side:&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;; color: gray;"&gt;///&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;; color: green;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;; color: gray;"&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;; color: blue;"&gt;function&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt;
MemebershipTypesGrid_OnRowSelect(controlId, tblName, &lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left: 216pt; text-indent: 36pt;" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt;rowIndex, rowEl)&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;span style="color: blue;"&gt;try&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt;&lt;span style=""&gt;  &lt;/span&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p style="text-indent: 36pt;" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;; color: blue;"&gt;var&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt; grid&lt;span style=""&gt;    &lt;/span&gt;= ISGetObject(controlId);&lt;/span&gt;&lt;/p&gt;&lt;p style="text-indent: 36pt;" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;; color: blue;"&gt;var&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt; row&lt;span style=""&gt;     &lt;/span&gt;= grid.RootTable.GetRow(rowIndex);&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;span style="color: blue;"&gt;var&lt;/span&gt;
key&lt;span style=""&gt;     &lt;/span&gt;= row.KeyValue;&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-indent: 36pt;" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt;document.getElementById(&lt;span style="color: rgb(163, 21, 21);"&gt;'ucSelectedMemebershipTypIDGroup'&lt;/span&gt;).childNodes[0].value
= key;&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt;&lt;span style=""&gt;      &lt;/span&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;span style=""&gt;      &lt;/span&gt;grid.AddInput(&lt;span style="color: rgb(163, 21, 21);"&gt;"key"&lt;/span&gt;, key);&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt;&lt;span style=""&gt;      &lt;/span&gt;&lt;span style=""&gt;      &lt;/span&gt;grid.SendCustomRequest();&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt;&lt;span style=""&gt;      &lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;; color: blue;"&gt;catch&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt; (err)&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p style="text-indent: 36pt;" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt;alert(err.description);&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style=""&gt;              &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="" class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;; color: blue;"&gt;&lt;span style=""&gt; &lt;/span&gt;return&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt; &lt;span style="color: blue;"&gt;true&lt;/span&gt;;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;courier new&amp;quot;;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;With this
code, it works perfectly, except one thing, still refresh issue, sometimes the
third grid or the second grid don’t get refreshed, and if I update it manually,
I’ll see the data.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;Any brilliant
ideas to ensure the refreshment will happen?&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;This
software will be used by hundreds of users, and may be thousands of people in
the future, and I can’t ask the users not to navigate quickly using the keyboard
or to use the filter to navigate instead of using the keyboard, this is hard to
ask. If its few users and all technical users, I wouldn’t really care, but
users like doctors, nurses or accountants can’t be asked to do things like that,
they only want to know how to use the keyboard or mouse...etc &lt;/span&gt;&lt;span lang="undefined" style="font-family: wingdings;"&gt;&lt;span style=""&gt;:-)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;Thanks,&lt;/p&gt;
&lt;p class="MsoNormal"&gt;Maged&lt;br /&gt;&lt;span lang="undefined" style="font-family: wingdings;"&gt;&lt;span style="" /&gt;&lt;/span&gt;&lt;span lang="undefined" style=""&gt;&lt;/span&gt;&lt;/p&gt;

</description></item><item><title>OnRowChanged  bug</title><link>http://www.intersoftsolutions.com/Community/WebGrid/OnRowChanged/</link><pubDate>Tue, 18 May 2010 05:50:58 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebGrid</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Please allow me to expressing my opinion regarding this topic.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;I refer to ‘SendingCustomRequest.aspx’ sample file in WebGridSamples project. The sample utilizes two unique features of WebGrid which are parts of the architecture: &lt;em&gt;SendCustomRequest&lt;/em&gt; and &lt;em&gt;ClientAction engine&lt;/em&gt;. The SendCustomRequest basically sends a custom request to the server, just like the Refresh request which is made when you click the Refresh icon at the bottom-right corner of a WebGrid.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;There are two methods that can be optionally used together with SendCustomRequest: wgPrepareCustomAction and wgCustomActionResponse. The first one is called when the custom request is about to be made. You can place some code in the function to, for instance, set the StatusBar text. The latter is invoked after a response for the custom request is received. You can also send custom data to the server during the custom request.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;The ClientAction engine acts as a bridge between the client and the server, allowing client-side functions to be invoked from server side during OnTheFly Postback. This result in smoother interactions and most importantly much reduced codes and time needed for more complex scenarios.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;I will try to describes how to utilize the architecture to send data to the server to be processed and then send the result back to the client, all without Page Postback and yet conforming to the ASP.NET page lifecycle.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Specifically, the sample shows how to get a row’s data on the server, process it and send the results back to be displayed in another grid. When a user selects a row from the Customer table (WebGrid1), WebGrid2 will then load and display the Orders data of that selected customer.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;The logic behind this scenario is as following:&lt;/span&gt;&lt;/p&gt;
&lt;ol style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;&lt;li&gt;Invoke a custom request from the client in OnRowSelect event.&lt;/li&gt;&lt;li&gt;On the server side, check if the Postback action is invoked by the custom request.&lt;/li&gt;&lt;li&gt;If yes, refresh WebGrid2 so it can get and then show the new data.&lt;/li&gt;&lt;li&gt;The key value of the selected row is retrieved using Request[“key”].&lt;/li&gt;&lt;li&gt;Load the Orders based on that key value.&lt;/li&gt;&lt;li&gt;When the refreshing process is done the Orders data will automatically show up.&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;In this case, I agree with Julia Wijaya’s post that state that this is not an issue from WebGrid’s side. When user navigates quickly between rows using keyboard arrows, WebGrid1 will invoke custom request in OnRowSelect event from the client. However, there is a small amount of time (actually very small amount of time, in millisecond and less than a second) that needed to process the custom request.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;I’d like to suggest you to filter WebGrid1 rather than navigating quickly between rows using keyboard arrows. I’m sure that the filter feature of WebGrid will help you find your desired row rather than scrolling up and down quickly using keyboard arrow.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Please correct me if&amp;nbsp;I'm wrong and let us know your response.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>OnRowChanged  bug</title><link>http://www.intersoftsolutions.com/Community/WebGrid/OnRowChanged/</link><pubDate>Mon, 17 May 2010 21:02:57 GMT</pubDate><dc:creator>mmikaeel2</dc:creator><category>WebGrid</category><description>&lt;p&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type" /&gt;&lt;meta content="Word.Document" name="ProgId" /&gt;&lt;meta content="Microsoft Word 11" name="Originator" /&gt;&lt;link href="file:///C:\DOCUME~1\Maged\LOCALS~1\Temp\msohtml1\01\clip_filelist.xml" rel="File-List" /&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt; &lt;w:WordDocument&gt;&lt;w:View&gt;Normal&lt;/w:View&gt;&lt;w:Zoom&gt;0&lt;/w:Zoom&gt;&lt;w:PunctuationKerning/&gt;&lt;w:ValidateAgainstSchemas/&gt;&lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;&lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;&lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;&lt;w:Compatibility&gt;&lt;w:BreakWrappedTables/&gt;&lt;w:SnapToGridInCell/&gt;&lt;w:WrapTextWithPunct/&gt;&lt;w:UseAsianBreakRules/&gt;&lt;w:DontGrowAutofit/&gt;&lt;/w:Compatibility&gt;&lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;&lt;w:LatentStyles DefLockedState="false" LatentStyleCount="156"&gt;&lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt;
&amp;lt;!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	mso-header-margin:35.4pt;
	mso-footer-margin:35.4pt;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
--&amp;gt;
&lt;/style&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}
&lt;/style&gt;
&lt;![endif]--&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;Hi Julia,&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;span style=""&gt;  &lt;/span&gt;Thanks for your reply.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;span style=""&gt;   &lt;/span&gt;I don’t agree that this is not a bug.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;span style=""&gt;   &lt;/span&gt;The problem is, if you change quickly, the grid
will send the first event, but it will not send the second event, you need to wait
a little while to get the second event for the new row before you move to a new row.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;span style=""&gt;   &lt;/span&gt;Now imagine, if you have 10 rows of data in
the first grid, and the user just keep clicking on the down arrow to go down to
the fourth row, but because it was too fast, the grid may miss the last row to
send the event, this will result that the user will see a data in the second
grid not related to the current selected line, and that is my main concern.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;span style=""&gt; &lt;/span&gt;I’m working on a large medical project, and
mistake like this will result of wrong patient results and information. &lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;I tried your
sample, and it act a little bit better, but here is another related issue to
your sample.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;If I have
three grids, one master grid, that if this grid changed the row, the other 2
grid will get updated. With your sample, if we move quickly, we will get one
grid updated and the other one not!!&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;This is
serious issue and need to be fixed.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;If there is
any way to block the master grid of moving until the other grids get updated
that may fix, so please check and let me know.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;Maged&lt;/span&gt;&lt;/p&gt;

</description></item><item><title>OnRowChanged  bug</title><link>http://www.intersoftsolutions.com/Community/WebGrid/OnRowChanged/</link><pubDate>Mon, 17 May 2010 00:48:07 GMT</pubDate><dc:creator>julia</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hi Maged,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I have tested your scenario and I could replicate your issue. However, this issue is not a bug. Since the grid need time to process the data, then when you choose the next data quickly, the grid is already in progress for the first data. Basically the progress itself happened in almost no time, which can be counted as milliseconds. So the second grid will show it as the result.&lt;/p&gt;
&lt;p&gt;You might want to see our sample that fit with your scenario. The sample name is SendingCustomRequest.aspx.&lt;/p&gt;
&lt;p&gt;Hope this information helps. &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Julia&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>OnRowChanged  bug</title><link>http://www.intersoftsolutions.com/Community/WebGrid/OnRowChanged/</link><pubDate>Fri, 14 May 2010 19:05:59 GMT</pubDate><dc:creator>mmikaeel2</dc:creator><category>WebGrid</category><description>&lt;p&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type" /&gt;&lt;meta content="Word.Document" name="ProgId" /&gt;&lt;meta content="Microsoft Word 11" name="Originator" /&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5CMaged%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List" /&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
  &lt;/w:Compatibility&gt;
  &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;
 &lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState="false" LatentStyleCount="156"&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt;
&amp;lt;!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
p
	{mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	mso-header-margin:36.0pt;
	mso-footer-margin:36.0pt;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
--&amp;gt;
&lt;/style&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;  I'm using webgrid 7, and I've  two grids, if the  user
select the upper grid, the bottom grid will display all the related data.&lt;/p&gt;

&lt;p&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;   I'm using OnRowChanged client event to apply the data.&lt;/p&gt;

&lt;p&gt;   Now the bug is, if the user navigates quickly between the rows
using the keyboard arrows (up and down) very quickly, it will sometime skip the
action, and the action is not fired, and that cause a problem to the data in
the bottom grid, as it will not refresh and give wrong data to the user.&lt;/p&gt;

&lt;p&gt;This bug is very effective and critical bug, and I can not find work around it
to fix. I think you may send hot fix for it. Please advice.&lt;/p&gt;

&lt;p&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;
&lt;span style="font-size: 12pt; font-family: &amp;quot;times new roman&amp;quot;;"&gt;Maged&lt;/span&gt;
</description></item></channel></rss>