Disable RadAjaxPanel For LinkButton

2 posts, 0 answers
  1. Muhammad
    Muhammad avatar
    87 posts
    Member since:
    Oct 2012

    Posted 22 Jan 2011 Link to this post


    I am using RadAjaxPanel and my girdview is under that panel. I have one template and under that template I have one button for report which opening a new report in a new page but the problem is that under ajax panel it doesn't work and if I remove my the ajax panel it works fine and open a new report in a new window. If this problem is with the response.write then how can I disable my ajax request for opening a report in a new window.  Because I don't want to completely remove ajaxpanel or if you can provide some solution without disabling ajax request. 

    <telerik:RadAjaxLoadingPanel ID="alpProductionSechduleMain" runat="server" Height="75px"
        MinDisplayTime="5" Width="75px">
        <asp:Image ID="Image1" runat="server" AlternateText="Loading..." ImageUrl="~/Portals/0/Images/LoadingAjax.gif" />
    <telerik:RadAjaxPanel ID="rapPSMain" RequestQueueSize="5" runat="server" Width="100%" 
        OnAjaxRequest="rapPSMain_AjaxRequest" EnableOutsideScripts="True" HorizontalAlign="NotSet" 
        ScrollBars="None" LoadingPanelID="alpProductionSechduleMain" ><asp:GridView ID="gvJobs" runat="server" Width="100%" CellPadding="2" AutoGenerateColumns="False"
            CssClass="gridviewSpacing gvJobs" AllowPaging="true">
                        <asp:LinkButton ID="lnkbtnEditJob" runat="server" CommandArgument='<%# Eval("JobKey")%>'
                        <asp:LinkButton ID="lnkbtnPrintJob" runat="server" CommandArgument='<%# Eval("JobKey")%>' OnClientClick="OpenReport(this);" >print</asp:LinkButton>
                </asp:TemplateField></Columns></asp:GridView></telerik:RadAjaxPanel>Protected Sub rapPSMain_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs)        Response.Clear()
            Response.AddHeader("Content-Disposition", "attachment;filename=" & sFilename & ".htm")
            Response.ContentType = "text/html"

    Protected Sub rapPSMain_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs)
            Response.AddHeader("Content-Disposition", "attachment;filename=" & sFilename & ".htm")
            Response.ContentType = "text/html"
            Dim eEncoding As Encoding = Encoding.GetEncoding("Windows-1252")
            Dim eUnicode As Encoding = Encoding.Unicode
            Dim byUnicodeBytes As Byte() = eUnicode.GetBytes(sData)
            Dim byEncodedBytes As Byte() = Encoding.Convert(eUnicode, eEncoding, byUnicodeBytes)
        End Sub

  2. Pavlina
    Pavlina avatar
    6187 posts

    Posted 24 Jan 2011 Link to this post

    Hello Muhammad,

    Please examine the following help article and see if it helps to disable AJAX for the LinkButton:

    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top