Welcome Guest Search | Active Topics | Sign In | Register

The current request is not a callback request... help Options
gmyroup
Posted: Saturday, August 1, 2009 8:39:56 PM
Rank: Advanced Member
Groups: Member

Joined: 7/26/2009
Posts: 36
I have a grid within a callbackpanel (which is set to conditional) along with a button that causes a dialog to appears so the user can add more items to the grid.

In this dialog, there is an update button that runs some server-side code that adds new items to the table associated with the grid. After adding the items to the table I DataBind the grid and then attempt to update the callbackpanel housing the grid using the .update method only to get the "The current request is not a callback request..." error.

Any thoughts on how I update the callbackpanel's contents?
eo_support
Posted: Sunday, August 2, 2009 9:58:15 AM
Rank: Administration
Groups: Administration

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

Check whether you have the button set as a CallbackPanel trigger. Unless it is a trigger, it will trigger a regular post back and won't trigger a calllback.

Thanks!
gmyroup
Posted: Sunday, August 2, 2009 12:09:23 PM
Rank: Advanced Member
Groups: Member

Joined: 7/26/2009
Posts: 36
I am unable to see the button within the dialog from the callbackpanel control... it is not listed in the list. Is there a way I can refer to the button... something like dialog.controltemplate.control? As a work around I am using the dialog's dispose event as the trigger but then the dialog does not close unless I make a call to the callbackpanel that houses the dialog (I put the dialog in a callbackpanel because it was causing a postback when the user hit the update button)

Also, when I use an ASP AJAX PopupModelExtender(which itself islocated within a(n) ASP AJAX update panel) to house the same controls that I have inside a EO dialog... the ASP popup opens almost instantaneously while the EO take almost 2 seconds to appear. Any thoughts on why?
eo_support
Posted: Sunday, August 2, 2009 3:55:45 PM
Rank: Administration
Groups: Administration

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

There are two ways to add the button as a trigger. You can either set a parent control of the button as a trigger or set the CallbackPanel's ChildrenAsTrigger to true. Note both methods imply all the children control of the set control will become triggers.

We are not exactly sure what's causing the delay for you. If you display the dialog on load, EO dialog does wait until your entire page finishes loading before trying to show the dialog. That can be source of the delay.

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.