Delete prompt issue on Serverside

5 replies. Last post: September 28, 2010 12:46 AM by Yudi
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
Frank BruceMember

I can delete one row,but When I delete multi_Rows by "Delete Selection"(see the picture below),popup infor:"Please wait while webgrid is inprocessing requesting...".

I can delete multi_Rows  on cilentSide to avoid the popup infor,but I want to know
how to to avoid the popup infor when I delete multi_Rows on Serverside ????

Please help me,thanks!


jsCode:
  function Unprocess() {
            var grid = ISGetObject("WebGrid1");
            grid.XmlHttp.Asynchronous = false;  //any way,it seems that it does not run on serverside!     
        }
C#Code:

    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();
    }
All times are GMT -5. The time now is 2:09 PM.
Previous Next