After “Export to Excel” button click other click/postback events disabled on SharePoint custom webpart
While working I came across a difficult situation and not able to found the correct reason behind the issue.
I created a custom web part for MOSS2007 with ASP.net grid view control getting date from list using CAML query and display the data in tabular format. Export to excel functionality required to provide the data in excel to be saved locally from the grid view was one of the requirement I implemented using gridview.RenderControl() method.
I implemented the requirement completely and tested it and as expected it is working perfectly. But if we once clicked the “Export to Excel” button after words other control stops responding like sorting on grid view header, pagination stops posting back on click event.
Then started digging into the issue found the details in one of the telerik grid related post.
Solution I used is added following script on the custom web part.Other solutions also available for this problem which explained in telerik grid related post.