Hi,
I have a strange problem with Internet Explorer 9 when I try to center a WebDialogWindow on the screen.
If I open a WebDialogWindow of "medium" dimensions (let say 300 x 900), then I close it and after I open a "big" WebDialogWindow (let say 730 x 1000) , this last dialog is not centered and the scrollbars are shown on the screen.
If instead I open the "big" WebDialogWindow without first having opened the "medium" dialog, I haven't any problems: the "big" dialog is centered and the scrollbars aren't shown.
With FireFox 10.0.2 there are no problems.
I hope I was clear enough :-)
Thanks
Hello,
any idea?
Thank you
Hello accountinfragistics,
I have tested this scenario with NetAdvantage 11.2.2055 but I was not able to reproduce the behavior you have described. Please check the attached sample and confirm if the issue is present.
Hi accountinfragistics,
It seems that the issue occurs when the WebDialogWindow is in modal mode. Setting Modal="false" would solve it. However, I would suggest that you add second dialog window in the markup and pass the ID of the window you'd like to display to the ShowDialogWindow function. In this case you should be able to use the modal mode and the WebDialogWindow controls should be displayed correctly.
If you have any further questions, please feel free to contact me.
Hello,can you give me a simple example?Thank you
Here is the function and how it should be called:
function ShowDialoWindow(Width, Height, Caption, DialogName) {
var oWebDlgWin = $find(DialogName);
oWebDlgWin.set_height(Height + "px");
oWebDlgWin.set_width(Width + "px");
oWebDlgWin.set_windowState($IG.DialogWindowState.Normal);
oWebDlgWin.get_header().setCaptionText(Caption);
}
function btn1click() {
ShowDialoWindow(1000, 600, "Title1", "WebDialogWindow1");
function btn2click() {
ShowDialoWindow(300, 200, "Title2", "WebDialogWindow2");
And in the markup you should add the two WebDialogWindows:
<ig:WebDialogWindow ID="WebDialogWindow1" runat="server"
WindowState="Hidden" Modal="true" InitialLocation="Centered">
</ig:WebDialogWindow>
<ig:WebDialogWindow ID="WebDialogWindow2" runat="server"
Please let me know if this approach meets your requirements and if it is satisfying for you.
this work around resolve the problem with IE 9, but I was wondering if this issue will be fixed in the next release of the Infragistics library.
This behavior seems to be caused by the internal implementation of the WebDialogWindow. I think it's not something to be fixed.
Please let me know if you have any concerns.