Integration Points

Extending Corporate Data …

#48 Sharepoint RadGrid Export Affecting Subsequent Posts

with one comment

To correct the issue where your export to Excel stops any further postbacks add the following code to
your image button or button that invokes the export.

cf. Sharepoint Forum Link

OnClientClick=”_spSuppressFormOnSubmitWrapper = true; _spFormOnSubmitCalled = false;”

   <asp:ImageButton ID="ibExcelExport" runat="server" CausesValidation="False" ImageUrl="../images/ExcelExport.jpg"
   onclick="ibExcelExport_Click"
   OnClientClick="_spSuppressFormOnSubmitWrapper = true; _spFormOnSubmitCalled = false;"   />

Advertisement

Written by dmgorman

November 7, 2011 at 6:01 pm

Posted in Uncategorized

One Response

Subscribe to comments with RSS.

  1. Thank you so much for ur Code! It saves my day!!!

    Warm wishes,
    aki

    Aki

    February 7, 2012 at 9:50 am


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.