Error when clicking on button in radgrid with Ajax panel around it.

2 posts, 0 answers
  1. Sam Tran
    Sam Tran avatar
    85 posts
    Member since:
    Nov 2006

    Posted 09 Apr Link to this post

    This is the error...

    Uncaught Sys.WebForms.PageRequestManagerParserErrorException: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
    Details: Error parsing near ':"text/javascript"}

    I have read some other older threads about this but I am not sure what the actual issue is.  We just recently upgraded our telerik after a couple years and now this error is popping up everywhere.  Never had this issue before.  We use RadAjax Manager, RadAjax Panels, and RadAjax loading panels in a lot of places and that seems to be were the issue always pops up.  Need some guidance on how to remedy this issue without having to downgrade the telerik version because we upgraded to fix other issues with radeditors and jquery.  Please help when you can and let me know if you need more info.

    Code example below...

    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" EnableEmbeddedSkins="false" CssClass="rwLoading" Height="100%" Width="100%">
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
            <asp:HiddenField ID="HiddenFieldLookupType" runat="server" Value="" />
            <asp:HiddenField ID="HiddenFieldControlsToSet" runat="server" Value="" />
            <table width="100%" border="0" cellspacing="2" cellpadding="0">
                    <td align="center" valign="top">
                        <telerik:RadGrid ID="RadGridLookup" runat="server" AllowMultiRowSelection="False"
                            AllowPaging="True" PageSize="75" AllowFilteringByColumn="true" AllowSorting="False"
                            ShowStatusBar="false" ShowFooter="false" ShowHeader="True" AutoGenerateColumns="False"
                            GridLines="None" EnableEmbeddedSkins="True" GroupingSettings-CaseSensitive="false"
                            <PagerStyle Mode="NumericPages" Visible="False" AlwaysVisible="true" Position="Bottom"
                            <StatusBarSettings LoadingText="Loading Data" ReadyText="Data Loaded." />
                            <ClientSettings EnablePostBackOnRowClick="False">
                                <Scrolling AllowScroll="true" EnableVirtualScrollPaging="True" ScrollHeight="250"
                                    SaveScrollPosition="True" />
                                <Selecting AllowRowSelect="True" EnableDragToSelectRows="True" />
                                <ClientEvents OnRowDblClick="RadGridLookupRowDoubleClick" OnGridCreated="RadGridLookupGridCreated" />
                            <MasterTableView DataKeyNames="code" TableLayout="auto">
                                <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                                    <HeaderStyle Width="20px"></HeaderStyle>
                                <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                                    <HeaderStyle Width="20px"></HeaderStyle>
                                    <telerik:GridBoundColumn DataField="description" UniqueName="GridBoundColumnDescription"
                                        FilterControlAltText="Filter column" FilterControlWidth="480" HeaderText="Search List"
                                        CurrentFilterFunction="Contains" AutoPostBackOnFilter="false" ShowFilterIcon="True"
                                        <HeaderStyle HorizontalAlign="left" />
                                        <ItemStyle HorizontalAlign="left" VerticalAlign="middle" />
                                <ExpandCollapseColumn Visible="False">
                                <RowIndicatorColumn Visible="False">
                        <asp:CheckBox ID="CheckboxClosedJobs" runat="server" AutoPostBack="True" Checked="False"
                            EnableViewState="True" Text="Show closed/archived jobs?" />
                    <td align="center" valign="top">
                        <asp:Button ID="ButtonSelect" runat="server" Text="Select" />&nbsp;&nbsp;&nbsp;
                        <asp:Button ID="ButtonCancel" runat="server" Text="Cancel" OnClientClick="cancelClick();" />
            <input id="txtClient" runat="server" name="txtClient" type="hidden" />
            <input id="txtDivision" runat="server" name="txtDivision" type="hidden" />
            <input id="txtProduct" runat="server" name="txtProduct" type="hidden" />
            <input id="txtJob" runat="server" name="txtJob" type="hidden" />
            <input id="txtJobComp" runat="server" name="txtJobComp" type="hidden" />
            <input id="txtType" runat="server" name="txtType" type="hidden" />
            <input id="txtPO" runat="server" name="txtPO" type="hidden" />
            <input id="txtCampaign" runat="server" name="txtCampaign" type="hidden" />


  2. Vessy
    Vessy avatar
    2067 posts

    Posted 12 Apr Link to this post

    Hi Sam,

    Usually the experienced error means that the Response was changed during an AJAX request, which often happens when a server error is thrown and there is a redirect for that. You can review this topic which elaborates on this error.

    Can you, please, disable the AJAX on the problematic page(s) (or remove temporary the AJAX panels) and see if there is any server- or client-side error thrown when performing the same steps leading to the PageRequestManagerParserErrorException? You can find information on this matter here:

    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top