This is a migrated thread and some comments may be shown as answers.

[Solved] RadGrid and exception thrown with UpdatePanel and paging

9 Answers 234 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael Onstad
Top achievements
Rank 1
Michael Onstad asked on 24 Dec 2008, 07:33 AM

I was hoping this problem would get fix in the latest release, but it appears to still be here. Or maybe it's something I'm doing. Either way, I'm stuck and I need to find a solution. I have a dynamic RadGrid created on a dynamic page/scriptmanager, update panel.

Everything works good until I use paging:

Error: [Exception... "'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 '<html>
    11945|updat'.' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)"  location: "<unknown>"  data: no]

If I remove the update panel it seems to work fine, but obviously that is not what I want. I also don't have anything written to the screen (with Response.Write) when I do a full post back without the updatepanel.

Any ideas? I've had this problem for over a month now.



9 Answers, 1 is accepted

Sort by
0
Michael Onstad
Top achievements
Rank 1
answered on 27 Dec 2008, 03:40 AM
Anything on this issue?

0
Vlad
Telerik team
answered on 29 Dec 2008, 07:27 AM
Hi Michael,

Can you send us an example where we can reproduce this?

Greetings,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Tamish
Top achievements
Rank 1
answered on 18 Jun 2009, 07:19 PM
Anything on this?
0
Iana Tsolova
Telerik team
answered on 19 Jun 2009, 12:57 PM
Hello Tamish,

Attached is a sample application of a RadGrid in an UpdatePanel where grid paging works as expected. Try it and see what differs in your case.

Sincerely yours,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Michael Onstad
Top achievements
Rank 1
answered on 19 Jun 2009, 05:41 PM
I never did fix my issue..It was something with the grid where everything was added dynamically..Including scriptmanager and update panel..Is this example with everything dynamic?
0
Michael Onstad
Top achievements
Rank 1
answered on 19 Jun 2009, 05:54 PM
Also I might add that even the page itself was dynamic!
0
Iana Tsolova
Telerik team
answered on 22 Jun 2009, 08:39 AM
Hi Michael,

Here it is attached an updated version of my previous sample where all controls are created dynamically with the grid paging functionality enabled and working.

Can you confirm that the other controls added in this dynamic page in same UpdatePanel behave as expected? If so and in case the grid is created properly, I cannot find any reason for the grid to behave differently.

Greetings,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Tom M
Top achievements
Rank 1
answered on 12 Jan 2010, 06:49 PM
I have noticed this same issue, it only happens when I page through my RadGrid. Was anyone ever able to identify what was causing this exception?

Regards,
Tom
0
Tom M
Top achievements
Rank 1
answered on 12 Jan 2010, 07:39 PM
So I found a solution for my issue. I simply placed my RadAjaxManager declaration inside the UpdatePanel containing my RadGrid and paging worked fine...

<scratches head>

Regards,
Tom
Tags
Grid
Asked by
Michael Onstad
Top achievements
Rank 1
Answers by
Michael Onstad
Top achievements
Rank 1
Vlad
Telerik team
Tamish
Top achievements
Rank 1
Iana Tsolova
Telerik team
Tom M
Top achievements
Rank 1
Share this question
or