Hi,
I built a simple AJAX page. The basics, all controls work except the WebDialogWindow when its original state is set to visible = false AND that on a button click event the visible property is set to true... The control is within an update panel.
Again, it seems to work well in IE and Firefox, but Chrome seems to have issues with it...
Any thoughts?
Hi Marty,
Thank you for a report. I eventually tracked that problem, which happens under Safari and Chrome, to the failure to load javascript files used by WebDialogWindow. I reproduced similar problem with any control which is based on initialization of its javascript object on client and if that initialization depends on script resources like <script src="..."></script>.
All actions related to script-resources is implemented by AJAX framework and unfortunately WebDialogWindow is not able to modify or fix that architecture.
To fix, you may keep another dummy-static-permanently-hidden control on page outside of UpdatePanel. In this case javascript resources used by that control will be always availiable on client and they will not depend on dynamic async loading.
Or you may use style.display/visibility (or WindowState=Hidden/Normal) instead of Visible property. In this case WebDialogWindow will always exist on client.
Thanks. I did give this a try and it solved the problem.