Welcome Guest Search | Active Topics | Sign In | Register

Grid and CallbackPanel Options
Kemi Kadiri
Posted: Wednesday, July 13, 2011 8:18:18 AM
Rank: Newbie
Groups: Member

Joined: 7/6/2011
Posts: 5
Hello,

I ve a grid running in callback mode and allows paging inside a user control. The user control is loaded at run time inside a placeholder embedded within a callbackpanel. The grid loads on page load but when i clicked on the next page of the grid, i get this error:

Quote:
You can not use document.write or document.writeln inside a CallbackPanel update block. Such call could completely clear out the current document that is being updated.


Why is this happening?
eo_support
Posted: Wednesday, July 13, 2011 8:59:11 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

The error message indicates document.write has been called. You cannot call that during AJAX update.

Thanks
Kemi Kadiri
Posted: Wednesday, July 13, 2011 9:25:20 AM
Rank: Newbie
Groups: Member

Joined: 7/6/2011
Posts: 5
Hi,

i didn't use document.writeln in my code this error occurred when i clicked the next page link. Is it possible for me to embed a grid running in callback mode within a callbackpanel?
Kemi Kadiri
Posted: Wednesday, July 13, 2011 9:27:29 AM
Rank: Newbie
Groups: Member

Joined: 7/6/2011
Posts: 5
or can i have a nested callbackpanel on a page?
eo_support
Posted: Wednesday, July 13, 2011 10:20:08 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

There are no restrictions on nesting CallbackPanel or Grid callback mode inside CallbackPanel.

Try to remove your dynamic loading code and see if that's the problem. There is no difference from a control's point of view as to dynamic loading or not; However ASP.NET requires your post back control tree and the original control tree to be identical in order to fire server event correctly.

If the problem continues, please try to create a test page that demonstrates the problem. We will be happy to take a look as soon as we have that.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.