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
Hi accountinfragistics,
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.
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.
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.
Do you think this issue will be fixed in the new release?
Hello,can you give me a simple example?Thank you