|
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?
|
|
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!
|
|
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?
|
|
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!
|
|