Rank: Member Groups: Member
Joined: 9/1/2010 Posts: 28
|
I have an asp.net button in the footer of an EO Dialog control. The dialog control is in a Callbackpanel. When the page renders I get an error message about the trigger control not being found. I don't get the error if I move the button out of the Dialog control.
My workaround was to place the button as a hidden button out of the control and have it as a trigger control for the panel and place another button in the Dialog which when clicked clicks the hidden button.
Is there a way to get this functionality without using two buttons? Why can't the callbackpanel find the button if it's in the dialog control?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
That is normal. The trigger must be in the same naming container as the CallbackPanel. The dialog's ContentTemplate is a different naming container.
One way to avoid two buttons is to use two CallbackPanel. You would need to:
1. Place a separate CallbackPanel inside the dialog; 2. Place your button inside that second CallbackPanel and set it to trigger the second CallbackPanel; 3. Set both CallbackPanel controls' GroupName to the same value;
That way when you click the button to trigger the second CallbackPanel, the first CallbackPanel will also be triggered because they are now in the same "group".
Thanks!
|