Hi!
I'm having a Masterpage which I'm using for all other pages in my project. On one page, I have a WebGroupBox which contains several labels, a GridView and finally a WebDialogWindow which is Hidden at the beginning. When the user selects an item on the GridView, the WebDialogWindow is shown and should display some of those values.
The problem I got now is that the WebDialogWindow appears, but it looks like transparent, meaning the frame is not shown and the background isn't shown as well. The "close" symbol is there but only "written" with the red cross besides which remarks that the picture couldn't be loaded.
Does anyone know what the problem could be?
Hello,
I think that css cl***are missing on client. WebDialogWindow loads those cl***from a local files. In most cases those files are located at the local to project directory ~\ig_res.
You may look at generated html and search for <link ... href="aPath/ig_res/Default/ig_dialogwindow.css" ..>.
That will allows you to find which actual aPath is used and if it is accessible by client.
If you identified that file on server, but you are not sure if it is loaded, then you may try to debug that by temporary adding to that file any custom style and setting that style to any element on page. If element will not pick up that css, then it means that corresponding <link> failed (and dialog will fail too).
I have similar problem. The generated html has
<link href="/myproject/ig_res/default/ig_shared.css" type="text/css" rel="stylesheet" />
<link href="/myproject/ig_res/default/ig_dialogwindow.css" type="text/css" rel="stylesheet" />
My custom styles are located in a different folder:
<link href="/myproject/StyleSheets/LM.css" rel="stylesheet" type="text/css" />
Is ig_res folder supposed to be created automatically when you add reference to Infragostics to your project?
I do not have this folder and WebDialogWindow fails to render properly. Should I create this folder manually? What I am doing wrong?
The online samples for WebDialogWindow use image buttons to show the dialog. Instead I am using <input> html control like this:
<input type="button" runat="server" name="btnShowLegend" value="Legend" id="btnShowLegend" />
In the code behind I have:
String s = String.Format("ShowWindow('{0}');return false;", wdwLegend.ClientID); btnShowLegend.Attributes.Add("OnClick", s);
The dialog shows but everything from the web page under the dialog disappears. The rendered html is just:
<html></html>
When I close the dialog the page appears again. This is not what I need. I need the page to stay in the browser under the dialog box. Is it something to do with the messed CSS or it is something else?
Thanks.
You would need to move the ig_res folder over to production. I just wasted plenty of time and even had tech support direct me to articles that did not help. The web dialog seems to ignore the rules of always looking in ig_common and the web.config changes.
For me, I have used the WebImageButton and from client side pop the dialogwindow. Here is the code I use if it helps.
dialog = $find('<%=wdwPCF.ClientID%>');dialog.set_windowState($IG.DialogWindowState.Normal);
When I need to close it I do this
dialog = $find('<%=wdwPCF.ClientID%>');dialog.set_windowState($IG.DialogWindowState.Hidden);
Hope that helps,
Jerel
P.S. This forum has some major issues when posting. It took my code and duplicated like 20 times.