﻿<?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 - Delete prompt issue on Serverside</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Delete-prompt-issue-on-Serverside/</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>Delete prompt issue on Serverside</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Delete-prompt-issue-on-Serverside/</link><pubDate>Tue, 28 Sep 2010 00:46:51 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebGrid</category><category>delete</category><category>prompt</category><category>DeleteRow</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;I have forwarded and informed this to WebGrid development team to be checked.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;By default, deleting multiple rows will shows “Please wait while WebGrid is in progress processing request…” message. Based on the WebGrid’s event life cycle, there are WebGrid’s events (server-side) that will be executed. There is a flag that will tell whether WebGrid is still busy or ready to execute next command. The message “Please wait while WebGrid is in progress processing request…” appear because WebGrid is still busy while there is another request to delete the next row.&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’ll keep you updated with any news I heard from development team regarding this.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Delete prompt issue on Serverside</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Delete-prompt-issue-on-Serverside/</link><pubDate>Sun, 26 Sep 2010 23:54:40 GMT</pubDate><dc:creator>qq397472251</dc:creator><category>WebGrid</category><category>delete</category><category>prompt</category><category>DeleteRow</category><description>&lt;p&gt;&lt;span style="font-family: segoe ui; color: #1f497d"&gt;BatchUpdate&amp;nbsp;can achieve my&amp;nbsp;basic aim,but that is not my goal__Because b&lt;span style="font-family: segoe ui; color: #1f497d"&gt;atchUpdate  runs more slowly than  "WebGrid1_DeleteRow"!&lt;br /&gt;Maybe it has no way to &lt;strong&gt;avoid the popup infor(&lt;/strong&gt;“Please wait while WebGrid is in progress processing request…”&lt;strong&gt;) when I delete multi_Rows by &lt;span style="color: #ff0000"&gt;WebGrid1_DeleteRow event &lt;/span&gt; on Serverside !&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;span style="background-color: #ffffff; color: #3f3f3f"&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;&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;&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;&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;&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you all the same Yudi_&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Delete prompt issue on Serverside</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Delete-prompt-issue-on-Serverside/</link><pubDate>Sun, 26 Sep 2010 23:03:30 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebGrid</category><category>delete</category><category>prompt</category><category>DeleteRow</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Sorry for the inconvenience.&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 alternative in order to avoid the alert, “Please wait while WebGrid is in progress processing request…”, to be shown when deleting multiple rows of WebGrid is by enabling BatchUpdate feature of 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;By using BatchUpdate, you can delete multiple rows and save the changes on a single-click button.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Delete prompt issue on Serverside</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Delete-prompt-issue-on-Serverside/</link><pubDate>Fri, 24 Sep 2010 21:23:26 GMT</pubDate><dc:creator>qq397472251</dc:creator><category>WebGrid</category><category>delete</category><category>prompt</category><category>DeleteRow</category><description>
&lt;p&gt;&lt;strong&gt;I am sorry &amp;nbsp;that I have known the way to delete rows&amp;nbsp;below by client way(or call js code on severside),but I want to know how to to avoid the popup infor when I delete multi_Rows by deleterow event&amp;nbsp; on Serverside ????(please&amp;nbsp;pay attention to&amp;nbsp;the question&amp;nbsp;! thanks)&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;//delete rows :one wayfunction deleteMutRows() 
{ 
    var grid = ISGetObject("WebGrid1"); 
    var checkedRows = grid.RootTable.GetCheckedRows(); 
    if(checkedRows.length==0)
    {
   alert(' please select row ！');
    }
    else
      {
    for(i=0;i&amp;lt;=checkedRows.length - 1;i&amp;#43;&amp;#43;) 
    { 
        row = grid.RootTable.ToRowObject(checkedRows[i]); 
        grid.XmlHttp.Asynchronous = false; 
        row.Delete(); 
     } 
       }   
} 

//delete rows :the other wayfunction deleteRows()
{
var grid = ISGetObject("WebGrid1");
var i=0;
 var maxRow=5;//the count of Deleting rows
 var updateProcess = setInterval (function ()    
   { if (!grid.IsInProgress &amp;amp;&amp;amp; i &amp;lt; maxRow)        
   {    

  var rows = grid.RootTable.GetCheckedRows(); 
  var row = grid.RootTable.ToRowObject(rows[i])
   row .Delete();
    i&amp;#43;&amp;#43;;         
}        
    if (i &amp;gt;= maxRow) 
          
    {
     clearInterval(updateProcess);              
    updateProcess = null;        
    } }, 1);

}
&lt;/pre&gt;
</description></item><item><title>Delete prompt issue on Serverside</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Delete-prompt-issue-on-Serverside/</link><pubDate>Wed, 22 Sep 2010 04:35:49 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebGrid</category><category>delete</category><category>prompt</category><category>DeleteRow</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I made a simple test of WebGrid based on your scenario. In my test page, I added an ASP.NET button to delete the first and second row of 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;The OnClick server-side event of the ASP.NET Button control will invoke a javascript function. The Javascript function will delete the first two row of 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;I enclosed my test page as attachment. please have the attached sample tested on your end and let me know whether it helps or not.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Delete prompt issue on Serverside</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Delete-prompt-issue-on-Serverside/</link><pubDate>Mon, 20 Sep 2010 22:54:53 GMT</pubDate><dc:creator>qq397472251</dc:creator><category>WebGrid</category><category>delete</category><category>prompt</category><category>DeleteRow</category><description>&lt;p&gt;I can delete one row,but When I delete multi_Rows by "Delete Selection"(see the picture below),&lt;strong&gt;popup infor&lt;/strong&gt;:"Please wait while webgrid is inprocessing requesting...".&lt;/p&gt;
&lt;p&gt;I can delete multi_Rows  on cilentSide to avoid the &lt;strong&gt;popup infor,but&lt;/strong&gt; I want to know&lt;br /&gt;&lt;strong&gt;how to to avoid the popup infor when I delete multi_Rows&amp;nbsp;on Serverside&amp;nbsp;????&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Please help me,thanks!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color: #c00000"&gt;jsCode:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;  function Unprocess() {&lt;br /&gt;            var grid = ISGetObject("WebGrid1");&lt;br /&gt;            grid.XmlHttp.Asynchronous = false;  //any way,it seems that it does not run on serverside!      &lt;br /&gt;        } &lt;br /&gt;&lt;strong&gt;&lt;span style="color: #c00000"&gt;C#Code:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;pre&gt;    protected void WebGrid1_DeleteRow(object sender, RowEventArgs e)
    {
        DataSet ds = (DataSet)WebGrid1.DataSource;
        da.DeleteCommand = builder.GetDeleteCommand();
        WebGrid1.ClientAction.InvokeScript("Unprocess();");
        ((DataRowView)e.Row.DataRow).Row.Delete();
        WebGrid1.ClientAction.InvokeScript("Unprocess();");
        da.Update(ds);
        e.ReturnValue = false;
        WebGrid1.ClientAction.Refresh();
    }&lt;/pre&gt;</description></item></channel></rss>