On the web dialog window, the close form symbol "X".
Is there anyway to capture that event? If someone closes the dialog window?
I would prefer to do something server side if possible.
HI ,
Try wiring up the Server-Side StateChanged event. Then set the Auto PostBackFlag's WindowStateChange to on.
Here is a help link for auto postback flags - which are right off the WDW(WebDialogWindow)
http://help.infragistics.com/Help/NetAdvantage/NET/2008.2/CLR2.0/html/Infragistics2.Web.v8.2~Infragistics.Web.UI.LayoutControls.DialogWindowAutoPostBackFlags_members.html
Here is a help link to the StateChanged Event:
http://help.infragistics.com/Help/NetAdvantage/NET/2008.2/CLR2.0/html/Infragistics2.Web.v8.2~Infragistics.Web.UI.LayoutControls.WebDialogWindow~StateChanged_EV.html
hi;
i too am trying to get the close button to respond to a server-side event ( WindowStateChange ). i have looked at the links suggested above and this is what i have done. i did not understand the help link to the StateChanged Event.
i have set the autopostback flag to true to windowstatechanged event.
and i have created a server-side StateChanged event.
Private Sub WebDialogWindow1_StateChanged(ByVal sender As Object, ByVal e As Infragistics.Web.UI.LayoutControls.DialogWindowStateChangedEventArgs) Handles WebDialogWindow1.StateChanged Stop If e.NewState = Infragistics.Web.UI.LayoutControls.DialogWindowState.Hidden Then If e.OldState <> Infragistics.Web.UI.LayoutControls.DialogWindowState.Hidden Then lblReturnedData.Text = "window is closed" lblReturnedData.Visible = True End If End If End Sub
this event is never being fired. is this all that is necessary to wire-up the StateChanged event?
i do have the _Moved event server-side and it is being fired, however, it is fired after the window is closed.
Stop
End Sub
Thanks for your help.