Hi,
There is Infragistics webdialog window in page used for popup. When the popup is closed, values are sent back to page and postback occurs. The issue is during postback which resets webdialog id and am unable to proceed further. Can you please let me know how to recreate/reinitialize webdialog window in postback method.'
Thanks
Hello,
I am not sure I dully understand your requirements. The WebDialogWindow is available on IsPostBack, even if it is closed/exited. Is that you require to create a similar WebDialogWindow in code behind? I am looking forward more details from you.
You could find detailed information regarding the control at:http://help.infragistics.com/doc/ASPNET/2014.2/CLR4.0/?page=Web_WebDialogWindow.html
There is a link button which displays popup when clicked. Below is the infragistics control which is used as popup. The popup when closed should postback to main page. So postback is resetting all controls including below infragisctic window dialog. (dialog.get_windowState in the below function does not execute as dialog is null.) Other controls are reinitialized. I dont know how to reinitiliaze / recreate this infragistic control. I have to reinitialize when postback is done.Please let me know if you have any questions.
<ig:WebDialogWindow runat="server" ID="igWebDialog" InitialLocation="Centered" UseBodyAsParent="true" Height="100px" Width="400px" Modal="True" WindowState="Hidden" Style="line-height: normal" ClientEvents-WindowStateChanged="WebStateChanged" EnableViewState="False"> <ContentPane BackColor="White" ScrollBars="Hidden"> </ContentPane> </ig:WebDialogWindow>
External JS file handles the window (popup) close function.
function WebStateChanged(sender, args) { if (dialog.get_windowState() == 3) {CloseEvent(); }}
Yes you are also right in that I have to create similar WebDialogWindow in code behind with same id.
Hello Deepu,
Thank you for the details shared.
I am currently looking into this matter for you and I will update you with more details.
Thank you. I have used below statement and initializecomponent on page_init. Still it does not work. I also tried the solutions posted on one of your forums (http://www.infragistics.com/community/forums/t/83802.aspx
http://www.infragistics.com/community/forums/t/50478.aspx)
Nothing works.
Protected WithEvents igWebDialog As Infragistics.Web.UI.LayoutControls.WebDialogWindow