Hi!,
Attached there is a sample page to test this behavior.
It consists of a button and an update panel, when the button is clicked a new webdialogwindow is added to the page but the styles of the side borders is wrong only the first time. If you close the webdialogwindow and hit the button again it will appear normally.
It happens only on firefox, not in chrome or IE8/9
Thanks in advance.
Hi rickycl,
It has been some time since your post but in case that you still need assistance I will be glad to help.
I tested the sample you have provided but the WebDialogWindow is displayed correctly. However I would suggest you to upgrade to the latest service release of your product. Also you could take a look at the following online sample of the dialog window - http://samples.infragistics.com/aspnet/Samples/WebDialogWindow/EditingAndSelection/ResizableDialog/Default.aspx?cn=dialog-window&sid=e460edfd-9483-4dc6-b9ca-fa7bdb617076.
Please let me know if this helps.
I tested it again with the version we are currently using (11.1.20111.2158) on firefox 9.0.1 and it still occurs(only the first time you click the button). Could you confirm it works on that versions for you?
Something similar happens on Chrome (version 17.0.963.56 m)
Attached you will find a screenshot of the problem.
Thanks!
That's not an option for us right now, our architechture needs the controls to be added programmatically.
Is there another option to add the wdw by code as any other control?
A possible solution would be to add the dialog window on page load and set its WindowState to 'Hidden'. On button click you could add content to the dialog and make it visible:
protected void Page_Load(object sender, EventArgs e)
{
WebDialogWindow w = new WebDialogWindow();
w.Width = 500;
w.Height = 400;
w.ID = "WebDialogWindow1";
w.InitialLocation = DialogWindowPosition.Centered;
w.WindowState = DialogWindowState.Hidden;
UpdatePanel1.ContentTemplateContainer.Controls.Add(w);
}
protected void Button1_Click(object sender, EventArgs e)
WebDialogWindow wdw = (WebDialogWindow)UpdatePanel1.ContentTemplateContainer.FindControl("WebDialogWindow1");
wdw.WindowState = DialogWindowState.Normal;
If you have any concerns, please feel free to contact me.
Hello rickycl,
If you have any other questions, please do not hesitate to ask.
The problem with your suggestion is that the wdw would be already added on the page right? We want to avoid that besides we not always need the wdw. That's way we want to add it by code once we need it.
Is there any chance that this behaviour was a bug and could be fixed for future releases?
Thanks.
I have made some research and it seems that the issue occurs only if the button initiates an asynchronous postback and the CSS file for styling the WebDialogWindow is not loaded. You could remove the AsyncPostBackTrigger of the update panel, linked to that button to make a full postback. Another approach would be to include the ig_dialogwindow.css file manually in the page.
<link href="ig_res/Default/ig_dialogwindow.css" type="text/css" rel="stylesheet" />
If you have any further questions, please feel free to contact me.
If you have any other questions please feel free to contact me.
Just add the WebDialogWindow in a response to an event, which initiates a full postback. I believe this is not something to be fixed.
Please let me know if I can be of further assistance.
Thanks for your answer, still I would have to something particular to the control (adding the style), I need to do it entirely by code and in response to an event.
Is there any other suggestion or the posibility that this is fixed in the near future?
Let me know if you have any other questions.