Hi,
I am doing some experimenting with the WebDialogWindow, and it seems to work fine. But I get a JavaScript error in one of the pages I've used it:
Sys.ArgumentOutOfRangeException: Value must be an integer.Parameter name: xActual value was NaN.
The error is generated in a function which seems to call the x and y position of the WebDialogWindow. Both x and y values are 'NaN'.
I have 2 pages with the dialog, one of which generates the error and the other works fine. Both pages have the ScriptManager included and the appropriate assembly references. The page that works fine contains only the WebDialogWindow and 2 buttons (to show and hide it). The page that generates the script error has the WebDialogWindow, but also a DataList which includes an Infragistics WebPanel. I've included the opening tags of the WebDialogWindow, WebPanel and DataList from the problempage below.
<ig:WebDialogWindow ID="dialogWindow1" runat="server" Height="150px" InitialLocation="Centered" Modal="True" Moveable="False" Width="250px">
<asp:DataList ID="DataList1" runat="server" RepeatColumns="1" CellPadding="0" CellSpacing="5" ShowFooter="False" ShowHeader="False" HorizontalAlign="Center" Width="100%" ondeletecommand="DataList1_DeleteCommand" oneditcommand="DataList1_EditCommand">
<igmisc:WebPanel ID="WebPanel1" runat="server" StyleSetName="" Width="100%" PanelStyle-CssClass="MyPanelStyle">
Additional info:
Just a hunch: try removing the "px" from height, width, etc. Some controls [I forget where] insist upon pure integers in their markup, even when the meaning is "pixels".
Back again.
Unfortunately removing the px did not work. I've actually removed all width and height restrictions from every control in the page and no change.
Even removing the DataList did not help. Very strange ...
Sorry, it was just a hunch.
It might be a good one for Developer Support: http://devcenter.infragistics.com/Protected/SubmitSupportIssue.aspx
In my experience, they are much more likely to be useful if you can create an example project which re-creates the problem, and which is not based upon your own proprietary data. Create your example based upon the Northwind database, or upon datasets generated programmatically.
And be sure to come back here and post the answer for the rest of us.