Monday, May 13, 2013

All controls freezes after RadGrid Excel Export or Redirecting to another page to a new window in SharePoint 2010


All controls freezes after RadGrid Excel Export or Redirecting to another page to a new window in SharePoint 2010


Add following code to your .aspx or .ascx file


<script type="text/javascript" language="javascript">
    //sharepoint postback to work after clicking on telerik export to pdf
    if (typeof (_spBodyOnLoadFunctionNames) != 'undefined' && _spBodyOnLoadFunctionNames != null) {
        _spBodyOnLoadFunctionNames.push("supressSubmitWraper");
    }

    function supressSubmitWraper() {
        _spSuppressFormOnSubmitWrapper = true;
    }
</script>

2 comments: