Hello,
I need to show a WebDialogWindow when the page loads. I have written the following javascript, just straight up and down and not part of a function
var delegated = document.getElementById('<%=hiddenDelegated.ClientID%>').value;if (delegated == 0) { var dialogDelegate = $find('<%=wdwDelegate.ClientID%>'); alert(dialogDelegate); dialogDelegate.set_windowState($IG.DialogWindowState.Normal);
}
However, my alert tells me dialogDelegate is null, so the set_WindowState fails. Is it too early in the lifecycle to find the WebDialogWindow? Any suggestions?
I solved it by showing the dialog from code behind. Didn't know I could do that first.