I am using 2011.2.712 version.
I usually (not always) get this error and I have tried to read many articles about the issue on this forum and the others but not successfully.
Here are my 2 scenario :
1. The first page has a RadGrid which is in a RadAjaxPanel. When I interact with its paging (the number, or icon Next, Pre, etc), this error usually appears. I mean it's not always.
2. The second page has a button which used to export data into a folder on hard disk with .csv extension. I have replaced Response.Close(); by HttpContext.Current.ApplicationInstance.CompleteRequest();. It's OK. But after finishing this action, this error appears.
I really don't know how to fix this issue.
Please let me know what is the problem and how can I solve it.
Thanks in advance,
Phuc
16 Answers, 1 is accepted

To answer your second question, if button is ajaxified than the export will not work, you'll need to force the button to cause a full postback for it to properly work.

I agree with you that exporting causes fully postback so this button is not ajaxified in the page, but the page is not fully postback as normally after exporting action. I don't know why.

As I said to you, the first scenario which has an AJAX error when paging RadGrid. I write a sample which is the original sample from Tsvetina. I just create another page (default2.aspx) to use AJAX for this Grid and the bug appeared. (Please click on page number and next, previous buttons to reproduce this bug - Do it several times, the bug will appear randomly)
The attached file is the error pic.
Please get the sample file as the following link :
http://www.mediafire.com/?yrw5ojiljut88k3
Regards,
Phuc PHAM
This error message is the Telerik Trial meesage. Is does not indicate an issue with your application. Once to upgrade to the Dev version of the controls, it will stop popping up.
Greetings,
Iana
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

If it's error of Trial version, it's OK. Because I will use Developer version for development.
I have a question.
Why trial version has this bug? Because I think that Trial Version must be stable for developer's testing.
Regards,
phuc
The trial version is indeed stable. Though the trial message is displayed on the page using Response.Write() and such calls on ajaxified page are displayed as javascript errors.
Additionally, to distinguish which error comes from the trial message, you should check the string after "Error near". If it starts with Telerik.Web.UI, then this is the trial message. If not, you should find the source of the error elsewhere.
Greetings,
Iana
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Could you help me the second issue when I want to save data by clicking on a ImageButton which is in NestedViewTemplate of a RadGrid ? And this Grid is Ajaxified.
..............................
<
MasterTableView
GridLines
=
"Both"
DataKeyNames
=
"ID"
>
<
ExpandCollapseColumn
FilterControlAltText
=
"Filter ExpandColumn column"
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
<EpandCollapseColumn
>
<
NestedViewTemplate
>
<
table
width
=
"100%"
cellpadding
=
"0"
cellspacing
=
"0"
runat
=
"server"
id
=
"tblFirstDetail"
>
<
tr
runat
=
"server"
id
=
"trAttachedFile"
>
<td
style
=
"width : 130px"
>
<
asp:Label
id
=
"lblAttachedFile"
runat
=
"server"
Text
=
"Attached File(s)"
></
asp:Label
>
</
td
>
<
td
valign
=
"top"
>
<
asp:DropDownList
ID
=
"ddlAttachedFile"
runat
=
"server"
AutoPostBack
=
"True"
OnSelectedIndexChanged
=
"ddlAttachedFile_SelectedIndexChanged"
></
asp:DropDownList
>
<
asp:ImageButton
runat
=
"server"
ID
=
"iBtnSaveAttachedFile"
OnClick
=
"iBtnSaveAttachedFile_Click"
ImageUrl
=
"~/Styles/images/save.gif"
/>
</
td
>
</
tr
>
......................................................
<!--Detail Grid-->
<telerik:RadGrid ID="gridDetail" runat="server" .......
................................................
......................................................
I have tried to set "Fully Postback" for this button as below but not successfully
protected void gridJournal_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
if (e.Item is Telerik.Web.UI.GridNestedViewItem)
{
ImageButton btn = (ImageButton)((e.Item as Telerik.Web.UI.GridNestedViewItem).FindControl("iBtnSaveAttachedFile"));
(Page.Master as Default).ScriptManager.RegisterPostBackControl(btn);
}
}
Thank you,
Phuc
Reviewing your code I can confirm you properly chose the approach with handling the ImageButton Click event. Does it fire as expected? If yes, I cannot find a reason for the database operations not to work.
Kind regards,
Iana
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

No, the button is not fired as expected. I receive an error (Javacript) as the attached file.
If the Grid is not ajaxified, no problem.
Do you have any ideas? It's urgent to me.
Regards,
Phuc
Can you confirm that you have not disabled the Page ViewState, RadGrid or its parent control ViewState?
All the best,
Iana
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Viewstate of Page, Grid or any control is not disabled.
The click event of this button is for writing file by calling Response.BinaryWrite(theFile.Binary);
Regards,
Phuc
Can you try the attached sample and let me know how it works on your end?
Regards,
Iana
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Thanks a lot for your help.
I think i find the problem is. I am using RadAjaxManagerProxy for my Page. If I use RadAjaxPanel, it's OK.
But my page is complex so I use RadAjaxManagerProxy to control which controls need to be partially updated.
You can see it as below and I hope that you could give me the direction for my case :
<
telerik:RadAjaxManagerProxy
ID
=
"RadAjaxManagerProxy1"
runat
=
"server"
>
<
AjaxSettings
>
<%--To avoid Telerik AJAX error, here I set "AjaxUpdatedControl" is "pnlGridView" instead of "gridJournal" because if gridJournal has no record, it will be
set invisible in code behind. Its invisibility state will make an error when using RadAjaxManager
--%>
<
telerik:AjaxSetting
AjaxControlID
=
"btnDateFilter"
EventName
=
"Click"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"pnlGridView"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"pnlCriteria"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"IdBtnRechercher"
EventName
=
"Click"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"pnlGridView"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"pnlCriteria"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"gridShortcuts"
EventName
=
"SelectedIndexChanged"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"pnlGridView"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"pnlCriteria"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"InfoJournal"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"btnRefreshFilterList"
EventName
=
"Click"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"gridShortcuts"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"btnReinit"
EventName
=
"Click"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"pnlCriteria"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"btnSaveCriteria"
EventName
=
"Click"
>
<
UpdatedControls
>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<%--<
telerik:AjaxSetting
AjaxControlID
=
"radCmbReportType"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"radCmbReportType"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"radCmbReportCode"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>--%>
<
telerik:AjaxSetting
AjaxControlID
=
"DrpDwnInterval"
EventName
=
"SelectedIndexChanged"
>
<
UpdatedControls
>
<%--<
telerik:AjaxUpdatedControl
ControlID
=
"txtStartDate"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"txtEndDate"
/>--%>
<%--Update the panel instead of 2 TextBoxes to avoid line broken because RadAJax will automatically create a div for each TextBox--%>
<
telerik:AjaxUpdatedControl
ControlID
=
"pnlDateCondition"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManagerProxy
>
Regards,
Phuc

I create a simple project with 2 pages. One uses RadAjaxPanel, the other uses RadAjaxManager for writing file by clicking on an ImageButton in NestedViewTemplate.
- The page uses RadAjaxPanel (TestRadAjaxPanel.aspx) is OK.
- The page uses RadAjaxManager (TestRadAjaxManager.aspx) is not OK.
The link to this simple project as below.
http://www.mediafire.com/?bu9pxj337dfw4rb
Could you tell me what's the problem with using RadAjaxManager in this case and how can I fix this?
Thank you for your support,
Phuc
I tested the sample and I observed that the button click event fires properly even in the page with the RadAjaxManager. The problem here is that it performs ajax and not regular postback. I see you tried to force it to perform postback by registering it as postback control. However this approach for excluding controls from ajaxifying is valid only when RadAjaxPanel is used for ajaxifying. If you are using RadAjaxmanager, you should use the second approach from the described here. Or you can follow this article for more information on how to download files with ajax.
All the best,
Iana
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

I write client script in MasterPage and it's OK now.
Once again thank you so much for your help
Phuc