After “Export to Excel” button click other click/postback events disabled on SharePoint custom webpart
Solution I used is added following script on the custom web part
<script type="text/javascript" language="javascript">
//sharepoint postback to work after clicking on export to excel button
if (typeof (_spBodyOnLoadFunctionNames) != 'undefined' &&
_spBodyOnLoadFunctionNames != null)
{
_spBodyOnLoadFunctionNames.push("supressSubmitWraper");
}
function supressSubmitWraper() {
_spSuppressFormOnSubmitWrapper = true;
}
</script>
More info : http://www.faisalmb.com/post/Controls-not-functional-after-Export-to-Excel-or-Export-to-PDF-of-Telerik-in-Sharepoint-Application-page.aspx
<script type="text/javascript" language="javascript">
//sharepoint postback to work after clicking on export to excel button
if (typeof (_spBodyOnLoadFunctionNames) != 'undefined' &&
_spBodyOnLoadFunctionNames != null)
{
_spBodyOnLoadFunctionNames.push("supressSubmitWraper");
}
function supressSubmitWraper() {
_spSuppressFormOnSubmitWrapper = true;
}
</script>
More info : http://www.faisalmb.com/post/Controls-not-functional-after-Export-to-Excel-or-Export-to-PDF-of-Telerik-in-Sharepoint-Application-page.aspx
Comments
Post a Comment