This is a migrated thread and some comments may be shown as answers.

Check if Exporting Completed

1 Answer 129 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rafi
Top achievements
Rank 1
Rafi asked on 31 Oct 2011, 07:24 PM
Hi,

I want to Response.Redirect to another page when the user clicks the button and exports the list to excel. However, the user right now is sent to the other page before the exporting is completed and the list is never exported. So is there a way if I can check if my exporting is done and then transfer the user? There is an internal method IsExporting which could be useful, but there is no way to use this method? Anyone have any ideas?

I am using 2009 Q2 tools. 

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 01 Nov 2011, 04:32 AM
Hello Rafi,

You can check for CommandName in ItemCommand event as shown below.
C#:
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
   if (e.CommandName == RadGrid.ExportToExcelCommandName)//checking for export CommandName
   {
   }
}

-Shinu.
Tags
Grid
Asked by
Rafi
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or