Welcome Guest Search | Active Topics | Sign In | Register

The event ClientSideOnAccept is not fired, but ClientSideOnEnd is fired Options
jdownes
Posted: Friday, December 28, 2012 3:16:45 PM
Rank: Newbie
Groups: Member

Joined: 11/30/2012
Posts: 5
I am trying to address the same issue as post ' Refresh Parent after popup dialog closes"
at
http://www.essentialobjects.com/forum/postst5443_Refresh-Parent-after-popup-dialog-closes.aspx



<eo:callbackpanel id="CallbackPanel1" Triggers="{ControlID:lbLabelApplySelection_Show;Parameter:},{ControlID:dlgLabelApplySelection;Parameter:}"
runat="server">

<asp:button id="lbLabelApplySelection_Show" runat="server" CssClass="Button" CausesValidation="False"></asp:button></DIV>
<eo:dialog id="dlgLabelApplySelection" runat="server" BackColor="White" RestoreButtonUrl="00070103" ResizeImageUrl="00020014">
<ContentTemplate>
<bv:LabelApply id="ucLabelApply" runat="server" />
<asp:Button id="btnLabelApplySelectionOk" CssClass="Button" runat="server" Width="60px" Text="Save"
CausesValidation="False"></asp:Button>
<asp:Button id="btnLabelApplySelectionCancel" CssClass="Button" runat="server" Width="60px"
Text="Cancel" Visible="true" CausesValidation="False"></asp:Button>
</ContentTemplate>
</eo:dialog>
</eo:callbackpanel>

I assign the handlers here:

Dim d As EO.Web.Dialog = CType(ucLabelApply.FindControl("dlgLabelApplySelection"), EO.Web.Dialog)
d.ClientSideOnEnd = "OnCloses"
d.ClientSideOnAccept = "OnApplyCloses"


function OnApplyCloses() {
alert('function OnApplyCloses()');
}


function OnCloses(d,e) {
alert('function OnCloses()');

}

The event ClientSideOnAccept is not fired, but ClientSideOnEnd is fired.

Is there something wring with this assignment or the function[OnApplyCloses()] as defined?

Thank you in advance
eo_support
Posted: Friday, December 28, 2012 10:00:05 PM
Rank: Administration
Groups: Administration

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

ClientSideOnAccept is only fired when the dialog's AcceptButton is clicked. So if you add

AcceptButton="btnLabelApplySelectionOk"

To your dialog control, you will see ClientSideOnAccept being fired.

Thanks!
jdownes
Posted: Wednesday, January 2, 2013 9:19:26 AM
Rank: Newbie
Groups: Member

Joined: 11/30/2012
Posts: 5
Thanks, that did it.


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.