Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
211
When can you first show a WebDialogWindow
posted

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?

Parents
No Data
Reply Children
No Data